aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/particles_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-05-03 22:25:37 -0300
committerJuan Linietsky2016-05-03 22:25:37 -0300
commit567cb691ec49844101247bb9dc34bc2722f6af4f (patch)
treecaa577fdc22feec8869e66b32be34db0c90f8aa8 /tools/editor/plugins/particles_editor_plugin.cpp
parentc7e8def44696da9ddf0b459e166280668c84c4cb (diff)
downloadgodot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.gz
godot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.zst
godot-567cb691ec49844101247bb9dc34bc2722f6af4f.zip
Modified editor strings to be translatable in the future
Diffstat (limited to 'tools/editor/plugins/particles_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/particles_editor_plugin.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/editor/plugins/particles_editor_plugin.cpp b/tools/editor/plugins/particles_editor_plugin.cpp
index 2df6d3ea9..b7ba98762 100644
--- a/tools/editor/plugins/particles_editor_plugin.cpp
+++ b/tools/editor/plugins/particles_editor_plugin.cpp
@@ -57,7 +57,7 @@ void ParticlesEditor::_node_selected(const NodePath& p_path){
VisualInstance *vi = sel->cast_to<VisualInstance>();
if (!vi) {
- err_dialog->set_text("Node does not contain geometry.");
+ err_dialog->set_text(TTR("Node does not contain geometry."));
err_dialog->popup_centered_minsize();
return;
}
@@ -66,7 +66,7 @@ void ParticlesEditor::_node_selected(const NodePath& p_path){
if (geometry.size()==0) {
- err_dialog->set_text("Node does not contain geometry (faces).");
+ err_dialog->set_text(TTR("Node does not contain geometry (faces)."));
err_dialog->popup_centered_minsize();
return;
@@ -219,7 +219,7 @@ void ParticlesEditor::_generate_emission_points() {
if (!triangle_area_map.size() || area_accum==0) {
- err_dialog->set_text("Faces contain no area!");
+ err_dialog->set_text(TTR("Faces contain no area!"));
err_dialog->popup_centered_minsize();
return;
}
@@ -249,7 +249,7 @@ void ParticlesEditor::_generate_emission_points() {
if (gcount==0) {
- err_dialog->set_text("No Faces!");
+ err_dialog->set_text(TTR("No Faces!"));
err_dialog->popup_centered_minsize();
return;
}
@@ -349,20 +349,20 @@ ParticlesEditor::ParticlesEditor() {
particles_editor_hb->hide();
options->set_text("Particles");
- options->get_popup()->add_item("Generate AABB",MENU_OPTION_GENERATE_AABB);
+ options->get_popup()->add_item(TTR("Generate AABB"),MENU_OPTION_GENERATE_AABB);
options->get_popup()->add_separator();
- options->get_popup()->add_item("Create Emitter From Mesh",MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_MESH);
- options->get_popup()->add_item("Create Emitter From Node",MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE);
- options->get_popup()->add_item("Clear Emitter",MENU_OPTION_CLEAR_EMISSION_VOLUME);
+ options->get_popup()->add_item(TTR("Create Emitter From Mesh"),MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_MESH);
+ options->get_popup()->add_item(TTR("Create Emitter From Node"),MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE);
+ options->get_popup()->add_item(TTR("Clear Emitter"),MENU_OPTION_CLEAR_EMISSION_VOLUME);
options->get_popup()->connect("item_pressed", this,"_menu_option");
emission_dialog = memnew( ConfirmationDialog );
- emission_dialog->set_title("Create Emitter");
+ emission_dialog->set_title(TTR("Create Emitter"));
add_child(emission_dialog);
Label *l = memnew(Label);
l->set_pos(Point2(5,5));
- l->set_text("Emission Positions:");
+ l->set_text(TTR("Emission Positions:"));
emission_dialog->add_child(l);
@@ -374,20 +374,20 @@ ParticlesEditor::ParticlesEditor() {
emission_amount->set_max(65536);
emission_amount->set_val(512);
emission_dialog->add_child(emission_amount);
- emission_dialog->get_ok()->set_text("Create");
+ emission_dialog->get_ok()->set_text(TTR("Create"));
emission_dialog->connect("confirmed",this,"_generate_emission_points");
l = memnew(Label);
l->set_pos(Point2(5,50));
- l->set_text("Emission Fill:");
+ l->set_text(TTR("Emission Fill:"));
emission_dialog->add_child(l);
emission_fill = memnew( OptionButton );
emission_fill->set_anchor(MARGIN_RIGHT,ANCHOR_END);
emission_fill->set_begin( Point2(20,70));
emission_fill->set_end( Point2(5,75));
- emission_fill->add_item("Surface");
- emission_fill->add_item("Volume");
+ emission_fill->add_item(TTR("Surface"));
+ emission_fill->add_item(TTR("Volume"));
emission_dialog->add_child(emission_fill);
err_dialog = memnew( ConfirmationDialog );