1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Make more editor strings translatable

This commit is contained in:
Haoyu Qiu
2019-12-13 16:07:45 +08:00
parent adb703bc59
commit d151e1eaf9
3 changed files with 10 additions and 10 deletions

View File

@@ -652,12 +652,12 @@ const char *EditorAssetLibrary::sort_key[SORT_MAX] = {
};
const char *EditorAssetLibrary::sort_text[SORT_MAX] = {
"Recently Updated",
"Least Recently Updated",
"Name (A-Z)",
"Name (Z-A)",
"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("Recently Updated"),
TTRC("Least Recently Updated"),
TTRC("Name (A-Z)"),
TTRC("Name (Z-A)"),
TTRC("License (A-Z)"), // "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] = {
@@ -1383,7 +1383,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
search_hb2->add_child(memnew(Label(TTR("Sort:") + " ")));
sort = memnew(OptionButton);
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);