diff options
Diffstat (limited to 'tools/editor/create_dialog.cpp')
-rw-r--r-- | tools/editor/create_dialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp index 35688917fb..c156b1b2de 100644 --- a/tools/editor/create_dialog.cpp +++ b/tools/editor/create_dialog.cpp @@ -251,7 +251,7 @@ void CreateDialog::_notification(int p_what) { void CreateDialog::set_base_type(const String& p_base) { base_type=p_base; - set_title("Create New "+p_base); + set_title(TTR("Create New ")+p_base); _update_search(); } @@ -316,12 +316,12 @@ CreateDialog::CreateDialog() { add_child(vbc); set_child_rect(vbc); search_box = memnew( LineEdit ); - vbc->add_margin_child("Search:",search_box); + vbc->add_margin_child(TTR("Search:"),search_box); search_box->connect("text_changed",this,"_text_changed"); search_box->connect("input_event",this,"_sbox_input"); search_options = memnew( Tree ); - vbc->add_margin_child("Matches:",search_options,true); - get_ok()->set_text("Create"); + vbc->add_margin_child(TTR("Matches:"),search_options,true); + get_ok()->set_text(TTR("Create")); get_ok()->set_disabled(true); register_text_enter(search_box); set_hide_on_ok(false); @@ -541,7 +541,7 @@ void CreateDialog::_bind_methods() { void CreateDialog::set_base_type(const String& p_base) { - set_title("Create "+p_base+" Type"); + set_title(TTR("Create ")+p_base+" Type"); if (base==p_base) return; @@ -562,14 +562,14 @@ CreateDialog::CreateDialog() { add_child(vbc); set_child_rect(vbc); - get_ok()->set_text("Create"); + get_ok()->set_text(TTR("Create")); tree = memnew( Tree ); - vbc->add_margin_child("Type:",tree,true); + vbc->add_margin_child(TTR("Type:"),tree,true); //tree->set_hide_root(true); filter = memnew( LineEdit ); - vbc->add_margin_child("Filter:",filter); + vbc->add_margin_child(TTR("Filter:"),filter); base="Node"; set_as_toplevel(true); |