Merge pull request #34323 from timothyqiu/i18n
Make more editor strings translatable
This commit is contained in:
commit
ae2c6b638a
|
@ -691,7 +691,7 @@ ExportTemplateManager::ExportTemplateManager() {
|
||||||
|
|
||||||
template_open = memnew(FileDialog);
|
template_open = memnew(FileDialog);
|
||||||
template_open->set_title(TTR("Select Template File"));
|
template_open->set_title(TTR("Select Template File"));
|
||||||
template_open->add_filter("*.tpz ; Godot Export Templates");
|
template_open->add_filter("*.tpz ; " + TTR("Godot Export Templates"));
|
||||||
template_open->set_access(FileDialog::ACCESS_FILESYSTEM);
|
template_open->set_access(FileDialog::ACCESS_FILESYSTEM);
|
||||||
template_open->set_mode(FileDialog::MODE_OPEN_FILE);
|
template_open->set_mode(FileDialog::MODE_OPEN_FILE);
|
||||||
template_open->connect("file_selected", this, "_install_from_file", varray(true));
|
template_open->connect("file_selected", this, "_install_from_file", varray(true));
|
||||||
|
|
|
@ -652,12 +652,12 @@ const char *EditorAssetLibrary::sort_key[SORT_MAX] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *EditorAssetLibrary::sort_text[SORT_MAX] = {
|
const char *EditorAssetLibrary::sort_text[SORT_MAX] = {
|
||||||
"Recently Updated",
|
TTRC("Recently Updated"),
|
||||||
"Least Recently Updated",
|
TTRC("Least Recently Updated"),
|
||||||
"Name (A-Z)",
|
TTRC("Name (A-Z)"),
|
||||||
"Name (Z-A)",
|
TTRC("Name (Z-A)"),
|
||||||
"License (A-Z)", // "cost" stores the SPDX license name in the Godot Asset Library.
|
TTRC("License (A-Z)"), // "cost" stores the SPDX license name in the Godot Asset Library.
|
||||||
"License (Z-A)", // "cost" stores the SPDX license name in the Godot Asset Library.
|
TTRC("License (Z-A)"), // "cost" stores the SPDX license name in the Godot Asset Library.
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *EditorAssetLibrary::support_key[SUPPORT_MAX] = {
|
const char *EditorAssetLibrary::support_key[SUPPORT_MAX] = {
|
||||||
|
@ -1383,7 +1383,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
||||||
search_hb2->add_child(memnew(Label(TTR("Sort:") + " ")));
|
search_hb2->add_child(memnew(Label(TTR("Sort:") + " ")));
|
||||||
sort = memnew(OptionButton);
|
sort = memnew(OptionButton);
|
||||||
for (int i = 0; i < SORT_MAX; i++) {
|
for (int i = 0; i < SORT_MAX; i++) {
|
||||||
sort->add_item(sort_text[i]);
|
sort->add_item(TTRGET(sort_text[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
search_hb2->add_child(sort);
|
search_hb2->add_child(sort);
|
||||||
|
|
|
@ -253,9 +253,9 @@ void ProjectExportDialog::_edit_preset(int p_index) {
|
||||||
TreeItem *patch_add = patches->create_item(patch_root);
|
TreeItem *patch_add = patches->create_item(patch_root);
|
||||||
patch_add->set_metadata(0, patchlist.size());
|
patch_add->set_metadata(0, patchlist.size());
|
||||||
if (patchlist.size() == 0)
|
if (patchlist.size() == 0)
|
||||||
patch_add->set_text(0, "Add initial export...");
|
patch_add->set_text(0, TTR("Add initial export..."));
|
||||||
else
|
else
|
||||||
patch_add->set_text(0, "Add previous patches...");
|
patch_add->set_text(0, TTR("Add previous patches..."));
|
||||||
|
|
||||||
patch_add->add_button(0, get_icon("folder", "FileDialog"), 1);
|
patch_add->add_button(0, get_icon("folder", "FileDialog"), 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue