Fix omission of translation

This commit is contained in:
KOGA Mitsuhiro
2020-06-23 23:59:23 +09:00
parent b068f04892
commit 42d8838b96
5 changed files with 12 additions and 11 deletions
+3 -3
View File
@@ -108,7 +108,7 @@ class BoxPreferences {
loadTheme(Config.raw.theme);
}
if (ui.button("New")) {
if (ui.button(tr("New"))) {
UIBox.showCustom(function(ui: Zui) {
if (ui.tab(Id.handle(), tr("New Theme"))) {
ui.row([0.5, 0.5]);
@@ -130,13 +130,13 @@ class BoxPreferences {
});
}
if (ui.button("Import")) {
if (ui.button(tr("Import"))) {
UIFiles.show("json", false, function(path: String) {
ImportTheme.run(path);
});
}
if (ui.button("Export")) {
if (ui.button(tr("Export"))) {
UIFiles.show("json", true, function(path) {
path += Path.sep + UIFiles.filename;
if (!path.endsWith(".json")) path += ".json";