From 42d8838b965efce7691641b9fc8b33bce7d0cd3e Mon Sep 17 00:00:00 2001 From: KOGA Mitsuhiro Date: Tue, 23 Jun 2020 23:59:23 +0900 Subject: [PATCH] Fix omission of translation --- Assets/locale/ja.json | 5 +++-- Sources/arm/ui/BoxExport.hx | 6 +++--- Sources/arm/ui/BoxPreferences.hx | 6 +++--- Sources/arm/ui/TabBrushes.hx | 4 ++-- Sources/arm/ui/TabProperties.hx | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Assets/locale/ja.json b/Assets/locale/ja.json index da0fc106..50078155 100644 --- a/Assets/locale/ja.json +++ b/Assets/locale/ja.json @@ -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": "タイル" -} +} \ No newline at end of file diff --git a/Sources/arm/ui/BoxExport.hx b/Sources/arm/ui/BoxExport.hx index 3c13f70e..2ae95687 100644 --- a/Sources/arm/ui/BoxExport.hx +++ b/Sources/arm/ui/BoxExport.hx @@ -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; diff --git a/Sources/arm/ui/BoxPreferences.hx b/Sources/arm/ui/BoxPreferences.hx index f008fe56..500404bd 100644 --- a/Sources/arm/ui/BoxPreferences.hx +++ b/Sources/arm/ui/BoxPreferences.hx @@ -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"; diff --git a/Sources/arm/ui/TabBrushes.hx b/Sources/arm/ui/TabBrushes.hx index a22d48e8..26e3fc4d 100644 --- a/Sources/arm/ui/TabBrushes.hx +++ b/Sources/arm/ui/TabBrushes.hx @@ -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(); diff --git a/Sources/arm/ui/TabProperties.hx b/Sources/arm/ui/TabProperties.hx index ed53cf38..eab10da4 100644 --- a/Sources/arm/ui/TabProperties.hx +++ b/Sources/arm/ui/TabProperties.hx @@ -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) + "";