mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Modified editor strings to be translatable in the future
This commit is contained in:
parent
c7e8def446
commit
567cb691ec
96 changed files with 2135 additions and 2103 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue