diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index 92a36591ffc..a4aed65e58a 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -1345,7 +1345,7 @@ EditorAudioBuses::EditorAudioBuses() { List ext; ResourceLoader::get_recognized_extensions_for_type("AudioBusLayout", &ext); for (List::Element *E = ext.front(); E; E = E->next()) { - file_dialog->add_filter("*." + E->get() + "; Audio Bus Layout"); + file_dialog->add_filter(vformat("*.%s; %s", E->get(), TTR("Audio Bus Layout"))); } add_child(file_dialog); file_dialog->connect("file_selected", this, "_file_dialog_callback"); diff --git a/editor/plugins/baked_lightmap_editor_plugin.cpp b/editor/plugins/baked_lightmap_editor_plugin.cpp index 3d8ae67a2a2..91c922517a8 100644 --- a/editor/plugins/baked_lightmap_editor_plugin.cpp +++ b/editor/plugins/baked_lightmap_editor_plugin.cpp @@ -160,7 +160,7 @@ BakedLightmapEditorPlugin::BakedLightmapEditorPlugin(EditorNode *p_node) { file_dialog = memnew(EditorFileDialog); file_dialog->set_mode(EditorFileDialog::MODE_SAVE_FILE); - file_dialog->add_filter("*.lmbake ; LightMap Bake"); + file_dialog->add_filter("*.lmbake ; " + TTR("LightMap Bake")); file_dialog->set_title(TTR("Select lightmap bake file:")); file_dialog->connect("file_selected", this, "_bake_select_file"); bake->add_child(file_dialog); diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp index 4eadfe53155..7c7e92d0516 100644 --- a/editor/plugins/theme_editor_plugin.cpp +++ b/editor/plugins/theme_editor_plugin.cpp @@ -1881,7 +1881,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog() { List ext; ResourceLoader::get_recognized_extensions_for_type("Theme", &ext); for (List::Element *E = ext.front(); E; E = E->next()) { - import_another_theme_dialog->add_filter("*." + E->get() + "; Theme Resource"); + import_another_theme_dialog->add_filter(vformat("*.%s; %s", E->get(), TTR("Theme Resource"))); } import_another_file_hb->add_child(import_another_theme_dialog); import_another_theme_dialog->connect("file_selected", this, "_select_another_theme_cbk"); @@ -3281,7 +3281,7 @@ ThemeEditor::ThemeEditor() { List ext; ResourceLoader::get_recognized_extensions_for_type("PackedScene", &ext); for (List::Element *E = ext.front(); E; E = E->next()) { - preview_scene_dialog->add_filter("*." + E->get() + "; Scene"); + preview_scene_dialog->add_filter(vformat("*.%s; %s", E->get(), TTR("Scene"))); } main_hs->add_child(preview_scene_dialog); preview_scene_dialog->connect("file_selected", this, "_preview_scene_dialog_cbk");