mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Make name of editor file dialog filters translatable
This commit is contained in:
parent
c9d0523302
commit
86c76dca12
5 changed files with 8 additions and 7 deletions
|
|
@ -2077,7 +2077,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
|
|||
List<String> ext;
|
||||
ResourceLoader::get_recognized_extensions_for_type("Theme", &ext);
|
||||
for (const String &E : ext) {
|
||||
import_another_theme_dialog->add_filter("*." + E + "; Theme Resource");
|
||||
import_another_theme_dialog->add_filter(vformat("*.%s; %s", E, TTR("Theme Resource")));
|
||||
}
|
||||
import_another_file_hb->add_child(import_another_theme_dialog);
|
||||
import_another_theme_dialog->connect("file_selected", callable_mp(this, &ThemeItemEditorDialog::_select_another_theme_cbk));
|
||||
|
|
@ -3664,7 +3664,7 @@ ThemeEditor::ThemeEditor() {
|
|||
List<String> ext;
|
||||
ResourceLoader::get_recognized_extensions_for_type("PackedScene", &ext);
|
||||
for (const String &E : ext) {
|
||||
preview_scene_dialog->add_filter("*." + E + "; Scene");
|
||||
preview_scene_dialog->add_filter(vformat("*.%s; %s", E, TTR("Scene")));
|
||||
}
|
||||
main_hs->add_child(preview_scene_dialog);
|
||||
preview_scene_dialog->connect("file_selected", callable_mp(this, &ThemeEditor::_preview_scene_dialog_cbk));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue