diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-05-03 22:25:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-05-03 22:25:37 -0300 |
commit | 567cb691ec49844101247bb9dc34bc2722f6af4f (patch) | |
tree | caa577fdc22feec8869e66b32be34db0c90f8aa8 /tools/editor/import_settings.cpp | |
parent | c7e8def44696da9ddf0b459e166280668c84c4cb (diff) |
Modified editor strings to be translatable in the future
Diffstat (limited to 'tools/editor/import_settings.cpp')
-rw-r--r-- | tools/editor/import_settings.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/editor/import_settings.cpp b/tools/editor/import_settings.cpp index 2bbd1e3805..057c94fad4 100644 --- a/tools/editor/import_settings.cpp +++ b/tools/editor/import_settings.cpp @@ -99,7 +99,7 @@ void ImportSettingsDialog::_button_pressed(Object *p_button, int p_col, int p_id if (!ti) return; String path = ti->get_metadata(0); - print_line("PATH: "+path); + print_line(TTR("PATH: ")+path); Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path); ERR_FAIL_COND(rimd.is_null()); Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor()); @@ -256,7 +256,7 @@ void ImportSettingsDialog::ok_pressed() { return; String path = ti->get_metadata(0); - print_line("PATH: "+path); + print_line(TTR("PATH: ")+path); Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path); ERR_FAIL_COND(rimd.is_null()); Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor()); @@ -271,14 +271,14 @@ ImportSettingsDialog::ImportSettingsDialog(EditorNode *p_editor) { editor=p_editor; - get_ok()->set_text("Close"); + get_ok()->set_text(TTR("Close")); tree = memnew( Tree ); add_child(tree); set_child_rect(tree); - set_title("Imported Resources"); + set_title(TTR("Imported Resources")); - texformat="Keep,None,Disk,VRAM"; + texformat=TTR("Keep,None,Disk,VRAM"); tree->set_hide_root(true); tree->set_columns(2); @@ -288,9 +288,9 @@ ImportSettingsDialog::ImportSettingsDialog(EditorNode *p_editor) { tree->connect("item_edited",this,"_item_edited"); tree->connect("button_pressed",this,"_button_pressed"); -// add_button("Re-Import","reimport"); - get_ok()->set_text("Re-Import"); - get_cancel()->set_text("Close"); +// add_button(TTR("Re-Import"),"reimport"); + get_ok()->set_text(TTR("Re-Import")); + get_cancel()->set_text(TTR("Close")); updating=false; edited=NULL; |