summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-05 09:21:03 +0100
committerGitHub <noreply@github.com>2022-03-05 09:21:03 +0100
commit0b08c4d3d441b2fce3f7608f0d9f09572ec8906f (patch)
tree5adcaeb52219eec880ddbf855c00a10d4e47b50e /editor/import
parentc9d052330291b726660f3ac397ec82dbcf638bf0 (diff)
parent86c76dca1213e664c1e5a1708fc819b949a9d4c4 (diff)
Merge pull request #58773 from timothyqiu/file-dialog-filter-i18n
Make name of editor file dialog filters translatable
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/scene_import_settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp
index 4e06253041..f500268ad3 100644
--- a/editor/import/scene_import_settings.cpp
+++ b/editor/import/scene_import_settings.cpp
@@ -1269,8 +1269,8 @@ SceneImportSettings::SceneImportSettings() {
item_save_path = memnew(EditorFileDialog);
item_save_path->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
- item_save_path->add_filter("*.tres;Text Resource");
- item_save_path->add_filter("*.res;Binary Resource");
+ item_save_path->add_filter("*.tres; " + TTR("Text Resource"));
+ item_save_path->add_filter("*.res; " + TTR("Binary Resource"));
add_child(item_save_path);
item_save_path->connect("file_selected", callable_mp(this, &SceneImportSettings::_save_path_changed));