aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/create_dialog.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/create_dialog.cpp
parentc7e8def44696da9ddf0b459e166280668c84c4cb (diff)
downloadgodot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.gz
godot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.zst
godot-567cb691ec49844101247bb9dc34bc2722f6af4f.zip
Diffstat (limited to 'tools/editor/create_dialog.cpp')
-rw-r--r--tools/editor/create_dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp
index 35688917f..c156b1b2d 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);