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 -2
View File
@@ -116,6 +116,7 @@
"Path": "パス",
"Brushes": "ブラシ",
"Nodes": "ノード",
"Duplicate": "複製",
"Console": "コンソール",
"Clear": "消去",
"Fonts": "フォント",
@@ -134,7 +135,6 @@
"Move Down": "下に移動",
"Merge Group": "グループをマージ",
"Merge Down": "下とマージ",
"Duplicate": "複製",
"Black Mask": "黒マスク",
"White Mask": "白マスク",
"Select Material": "マテリアルを選択",
@@ -189,6 +189,7 @@
"Manager": "マネージャ",
"Properties": "プロパティ",
"Location": "位置",
"Rotation": "回転",
"Scale": "スケール",
"Script": "スクリプト",
"Run": "実行",
@@ -319,4 +320,4 @@
"Hold {key} to set source": "{key}を長押ししてソースを設定します",
"Normal Map": "法線マップ",
"Tiled": "タイル"
}
}
+3 -3
View File
@@ -118,7 +118,7 @@ class BoxExport {
if (ui.tab(Id.handle(), tr("New Preset"))) {
ui.row([0.5, 0.5]);
var presetName = ui.textInput(Id.handle({text: "new_preset"}), tr("Name"));
if (ui.button("OK") || ui.isReturnDown) {
if (ui.button(tr("OK")) || ui.isReturnDown) {
newPreset(presetName);
fetchPresets();
preset = null;
@@ -228,10 +228,10 @@ class BoxExport {
ui.text(tris + " triangles");
ui.row([0.5, 0.5]);
if (ui.button("Cancel")) {
if (ui.button(tr("Cancel"))) {
UIBox.show = false;
}
if (ui.button("Export")) {
if (ui.button(tr("Export"))) {
UIBox.show = false;
UIFiles.show(Context.exportMeshFormat == FormatObj ? "obj" : "arm", true, function(path: String) {
var f = UIFiles.filename;
+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";
+2 -2
View File
@@ -79,7 +79,7 @@ class TabBrushes {
//var b = Project.brushes[i];
ui.text(Project.brushes[i].canvas.name, Right, ui.t.HIGHLIGHT_COL);
if (ui.button("Export", Left)) {
if (ui.button(tr("Export"), Left)) {
Context.selectBrush(i);
UIFiles.show("arm", true, function(path: String) {
var f = UIFiles.filename;
@@ -88,7 +88,7 @@ class TabBrushes {
});
}
if (ui.button("Duplicate", Left)) {
if (ui.button(tr("Duplicate"), Left)) {
function dupliBrush(_) {
iron.App.removeRender(dupliBrush);
Context.brush = new BrushSlot();
+1 -1
View File
@@ -42,7 +42,7 @@ class TabProperties {
if (h.changed) { loc.z = f; Context.ddirty = 2; }
ui.row(row4);
ui.text("Rotation");
ui.text(tr("Rotation"));
h = Id.handle();
h.text = roundfp(rot.x) + "";