Make name of editor file dialog filters translatable

This commit is contained in:
Haoyu Qiu
2022-03-05 12:32:38 +08:00
parent c9d0523302
commit 86c76dca12
5 changed files with 8 additions and 7 deletions

View File

@@ -883,7 +883,8 @@ void ProjectExportDialog::_export_project() {
List<String> extension_list = platform->get_binary_extensions(current);
for (int i = 0; i < extension_list.size(); i++) {
export_project->add_filter("*." + extension_list[i] + " ; " + platform->get_name() + " Export");
// TRANSLATORS: This is the name of a project export file format. %s will be replaced by the platform name.
export_project->add_filter(vformat("*.%s; %s", extension_list[i], vformat(TTR("%s Export"), platform->get_name())));
}
if (!current->get_export_path().is_empty()) {