diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-05-29 11:55:11 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-05-29 11:55:11 +0200 |
commit | a5777994cbc06183af7db7d8233434f245d5b089 (patch) | |
tree | 40c5bf94c77d217e5c010109d2aafab9f8f0745c /tools/editor | |
parent | cb3faf0b6f0db57dd58c09791ca7ff1a1bf4e234 (diff) | |
parent | cb05e8450d1c81f709627e7f174a1c3ad8420955 (diff) |
Merge pull request #4868 from Geequlim/more-tranlatable
Set more visible string to translatable
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/dependency_editor.cpp | 8 | ||||
-rw-r--r-- | tools/editor/editor_plugin_settings.cpp | 9 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_font_import_plugin.cpp | 2 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_mesh_import_plugin.cpp | 3 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_sample_import_plugin.cpp | 4 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_scene_import_plugin.cpp | 3 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_texture_import_plugin.cpp | 4 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_translation_import_plugin.cpp | 2 | ||||
-rw-r--r-- | tools/editor/plugins/animation_player_editor_plugin.cpp | 4 | ||||
-rw-r--r-- | tools/editor/project_export.cpp | 2 | ||||
-rw-r--r-- | tools/editor/project_manager.cpp | 2 | ||||
-rw-r--r-- | tools/editor/project_settings.cpp | 4 |
12 files changed, 20 insertions, 27 deletions
diff --git a/tools/editor/dependency_editor.cpp b/tools/editor/dependency_editor.cpp index 633a414b07..a702d3c687 100644 --- a/tools/editor/dependency_editor.cpp +++ b/tools/editor/dependency_editor.cpp @@ -240,8 +240,8 @@ DependencyEditor::DependencyEditor() { tree = memnew( Tree ); tree->set_columns(2); tree->set_column_titles_visible(true); - tree->set_column_title(0,"Resource"); - tree->set_column_title(1,"Path"); + tree->set_column_title(0,TTR("Resource")); + tree->set_column_title(1,TTR("Path")); tree->set_hide_root(true); tree->connect("button_pressed",this,"_load_pressed"); @@ -401,7 +401,7 @@ void DependencyRemoveDialog::show(const Vector<String> &to_erase) { if (exist) { owners->show(); - text->set_text("The files being removed are required by other resources in order for them to work.\nRemove them anyway? (no undo)"); + text->set_text(TTR("The files being removed are required by other resources in order for them to work.\nRemove them anyway? (no undo)")); popup_centered_minsize(Size2(500,220)); } else { owners->hide(); @@ -675,7 +675,7 @@ OrphanResourcesDialog::OrphanResourcesDialog(){ files->set_column_min_width(1,100); files->set_column_expand(0,true); files->set_column_expand(1,false); - files->set_column_title(0,"Resource"); + files->set_column_title(0,TTR("Resource")); files->set_column_title(1,TTR("Owns")); files->set_hide_root(true); vbc->add_margin_child(TTR("Resources Without Explicit Ownership:"),files,true); diff --git a/tools/editor/editor_plugin_settings.cpp b/tools/editor/editor_plugin_settings.cpp index 3eefe10448..1a6be05af3 100644 --- a/tools/editor/editor_plugin_settings.cpp +++ b/tools/editor/editor_plugin_settings.cpp @@ -150,7 +150,7 @@ void EditorPluginSettings::_bind_methods() { EditorPluginSettings::EditorPluginSettings() { HBoxContainer *title_hb = memnew( HBoxContainer ); - title_hb->add_child(memnew( Label("Installed Plugins:"))); + title_hb->add_child(memnew( Label(TTR("Installed Plugins:")))); title_hb->add_spacer(); update_list = memnew( Button(TTR("Update")) ); update_list->connect("pressed",this,"update_plugins"); @@ -162,9 +162,9 @@ EditorPluginSettings::EditorPluginSettings() { plugin_list->set_columns(4); plugin_list->set_column_titles_visible(true); plugin_list->set_column_title(0,TTR("Name:")); - plugin_list->set_column_title(1,"Version:"); - plugin_list->set_column_title(2,"Author:"); - plugin_list->set_column_title(3,"Status:"); + plugin_list->set_column_title(1,TTR("Version:")); + plugin_list->set_column_title(2,TTR("Author:")); + plugin_list->set_column_title(3,TTR("Status:")); plugin_list->set_column_expand(0,true); plugin_list->set_column_expand(1,false); plugin_list->set_column_expand(2,false); @@ -185,4 +185,3 @@ EditorPluginSettings::EditorPluginSettings() { updating=false; } - diff --git a/tools/editor/io_plugins/editor_font_import_plugin.cpp b/tools/editor/io_plugins/editor_font_import_plugin.cpp index 7cc5b579fe..f4d6af7e10 100644 --- a/tools/editor/io_plugins/editor_font_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_font_import_plugin.cpp @@ -1614,7 +1614,7 @@ String EditorFontImportPlugin::get_name() const { } String EditorFontImportPlugin::get_visible_name() const{ - return "Font"; + return TTR("Font"); } void EditorFontImportPlugin::import_dialog(const String& p_from){ diff --git a/tools/editor/io_plugins/editor_mesh_import_plugin.cpp b/tools/editor/io_plugins/editor_mesh_import_plugin.cpp index c77256f27b..45da42969c 100644 --- a/tools/editor/io_plugins/editor_mesh_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_mesh_import_plugin.cpp @@ -331,7 +331,7 @@ String EditorMeshImportPlugin::get_name() const { } String EditorMeshImportPlugin::get_visible_name() const{ - return "Mesh"; + return TTR("Mesh"); } void EditorMeshImportPlugin::import_dialog(const String& p_from){ @@ -561,4 +561,3 @@ EditorMeshImportPlugin::EditorMeshImportPlugin(EditorNode* p_editor) { dialog = memnew( EditorMeshImportDialog(this)); p_editor->get_gui_base()->add_child(dialog); } - diff --git a/tools/editor/io_plugins/editor_sample_import_plugin.cpp b/tools/editor/io_plugins/editor_sample_import_plugin.cpp index 631273a878..120bdc6f44 100644 --- a/tools/editor/io_plugins/editor_sample_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_sample_import_plugin.cpp @@ -406,7 +406,7 @@ String EditorSampleImportPlugin::get_name() const { } String EditorSampleImportPlugin::get_visible_name() const{ - return "Audio Sample"; + return TTR("Audio Sample"); } void EditorSampleImportPlugin::import_dialog(const String& p_from){ @@ -921,5 +921,3 @@ Vector<uint8_t> EditorSampleExportPlugin::custom_export(String& p_path,const Ref EditorSampleExportPlugin::EditorSampleExportPlugin() { } - - diff --git a/tools/editor/io_plugins/editor_scene_import_plugin.cpp b/tools/editor/io_plugins/editor_scene_import_plugin.cpp index 00bd5413d3..3effb1d0aa 100644 --- a/tools/editor/io_plugins/editor_scene_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_scene_import_plugin.cpp @@ -2647,7 +2647,7 @@ String EditorSceneAnimationImportPlugin::get_name() const { String EditorSceneAnimationImportPlugin::get_visible_name() const{ - return "3D Scene Animation"; + return TTR("3D Scene Animation"); } void EditorSceneAnimationImportPlugin::import_dialog(const String& p_from){ @@ -2662,4 +2662,3 @@ EditorSceneAnimationImportPlugin::EditorSceneAnimationImportPlugin(EditorNode* p } - diff --git a/tools/editor/io_plugins/editor_texture_import_plugin.cpp b/tools/editor/io_plugins/editor_texture_import_plugin.cpp index c7598466d5..2376f3a395 100644 --- a/tools/editor/io_plugins/editor_texture_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_texture_import_plugin.cpp @@ -828,7 +828,7 @@ String EditorTextureImportPlugin::get_name() const { String EditorTextureImportPlugin::get_visible_name() const { - return "Texture"; + return TTR("Texture"); } void EditorTextureImportPlugin::import_dialog(const String& p_from) { @@ -1805,7 +1805,7 @@ EditorTextureImportPlugin *EditorTextureImportPlugin::singleton=NULL; EditorTextureImportPlugin::EditorTextureImportPlugin(EditorNode *p_editor) { singleton=this; - editor=p_editor; + editor=p_editor; dialog = memnew( EditorTextureImportDialog(this) ); editor->get_gui_base()->add_child(dialog); diff --git a/tools/editor/io_plugins/editor_translation_import_plugin.cpp b/tools/editor/io_plugins/editor_translation_import_plugin.cpp index 282153fa73..2b5bd29ac8 100644 --- a/tools/editor/io_plugins/editor_translation_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_translation_import_plugin.cpp @@ -387,7 +387,7 @@ String EditorTranslationImportPlugin::get_name() const { } String EditorTranslationImportPlugin::get_visible_name() const { - return "Translation"; + return TTR("Translation"); } void EditorTranslationImportPlugin::import_dialog(const String& p_from) { diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp index 343fcce5cd..4bbcb396af 100644 --- a/tools/editor/plugins/animation_player_editor_plugin.cpp +++ b/tools/editor/plugins/animation_player_editor_plugin.cpp @@ -1544,7 +1544,7 @@ AnimationPlayerEditorPlugin::AnimationPlayerEditorPlugin(EditorNode *p_node) { anim_editor = memnew( AnimationPlayerEditor(editor) ); anim_editor->set_undo_redo(editor->get_undo_redo()); - editor->add_bottom_panel_item("Animation",anim_editor); + editor->add_bottom_panel_item(TTR("Animation"),anim_editor); /* editor->get_viewport()->add_child(anim_editor); anim_editor->set_area_as_parent_rect(); @@ -1562,5 +1562,3 @@ AnimationPlayerEditorPlugin::AnimationPlayerEditorPlugin(EditorNode *p_node) { AnimationPlayerEditorPlugin::~AnimationPlayerEditorPlugin() { } - - diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp index dea15ebd35..2045f2c030 100644 --- a/tools/editor/project_export.cpp +++ b/tools/editor/project_export.cpp @@ -1427,7 +1427,7 @@ ProjectExportDialog::ProjectExportDialog(EditorNode *p_editor) { sample_vbox->add_margin_child(TTR("Trailing Silence:"),sample_trim); script_vbox = memnew( VBoxContainer ); - script_vbox->set_name("Script"); + script_vbox->set_name(TTR("Script")); sections->add_child(script_vbox); script_mode = memnew( OptionButton ); script_vbox->add_margin_child(TTR("Script Export Mode:"),script_mode); diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index c06a8cd081..af57d5264e 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -1016,7 +1016,7 @@ void ProjectListFilter::_setup_filters() { filter_option->clear(); filter_option->add_item(TTR("Name")); - filter_option->add_item("Path"); + filter_option->add_item(TTR("Path")); } void ProjectListFilter::_command(int p_command) { diff --git a/tools/editor/project_settings.cpp b/tools/editor/project_settings.cpp index 605b12c879..ed26af29f7 100644 --- a/tools/editor/project_settings.cpp +++ b/tools/editor/project_settings.cpp @@ -1761,7 +1761,7 @@ ProjectSettings::ProjectSettings(EditorData *p_data) { tmc->add_child(translation_remap_options); translation_remap_options->set_columns(2); - translation_remap_options->set_column_title(0,"Path"); + translation_remap_options->set_column_title(0,TTR("Path")); translation_remap_options->set_column_title(1,TTR("Locale")); translation_remap_options->set_column_titles_visible(true); translation_remap_options->set_column_expand(0,true); @@ -1827,7 +1827,7 @@ ProjectSettings::ProjectSettings(EditorData *p_data) { autoload_list->set_column_title(0,TTR("Name")); autoload_list->set_column_expand(0,true); autoload_list->set_column_min_width(0,100); - autoload_list->set_column_title(1,"Path"); + autoload_list->set_column_title(1,TTR("Path")); autoload_list->set_column_expand(1,true); autoload_list->set_column_min_width(1,100); autoload_list->set_column_title(2,TTR("Singleton")); |