From 4b4b73d374050e53a08d64c1d4f27e8a7808b3fb Mon Sep 17 00:00:00 2001 From: heroesiiifan <77574150+heroesiiifan@users.noreply.github.com> Date: Sun, 16 Jul 2023 09:10:32 +0000 Subject: [PATCH 1/3] added missing lang in settings.json --- config/schemas/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/schemas/settings.json b/config/schemas/settings.json index b3dbd1651..a712c7f95 100644 --- a/config/schemas/settings.json +++ b/config/schemas/settings.json @@ -59,12 +59,12 @@ }, "language" : { "type" : "string", - "enum" : [ "english", "czech", "chinese", "french", "german", "hungarian", "italian", "korean", "polish", "russian", "spanish", "ukrainian" ], + "enum" : [ "english", "czech", "chinese", "finnish", "french", "german", "hungarian", "italian", "korean", "polish", "portuguese", "russian", "spanish", "swedish", "turkish", "ukrainian" ], "default" : "english" }, "gameDataLanguage" : { "type" : "string", - "enum" : [ "auto", "english", "czech", "chinese", "french", "german", "hungarian", "italian", "korean", "polish", "russian", "spanish", "ukrainian", "other_cp1250", "other_cp1251", "other_cp1252" ], + "enum" : [ "auto", "english", "czech", "chinese", "finnish", "french", "german", "hungarian", "italian", "korean", "polish", "portuguese", "russian", "spanish", "swedish", "turkish", "ukrainian", "other_cp1250", "other_cp1251", "other_cp1252" ], "default" : "auto" }, "lastSave" : { From b09e50f29ae0ead73fa4525f23a333b1ef7c7c4f Mon Sep 17 00:00:00 2001 From: heroesiiifan <77574150+heroesiiifan@users.noreply.github.com> Date: Sun, 16 Jul 2023 09:13:32 +0000 Subject: [PATCH 2/3] adding missing lang to mod.json --- config/schemas/mod.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/schemas/mod.json b/config/schemas/mod.json index 10621db8f..9c0d5b4e3 100644 --- a/config/schemas/mod.json +++ b/config/schemas/mod.json @@ -153,7 +153,7 @@ "language" : { "type" : "string", "description" : "Base language of the mod, before applying localizations. By default vcmi assumes English", - "enum" : [ "czech", "chinese", "english", "french", "german", "hungarian", "italian", "korean", "polish", "russian", "spanish", "ukrainian" ] + "enum" : [ "czech", "chinese", "english", "finnish", "french", "german", "hungarian", "italian", "korean", "polish", "portuguese", "russian", "spanish", "swedish", "turkish", "ukrainian" ] }, "czech" : { "$ref" : "#/definitions/localizable" @@ -164,6 +164,9 @@ "english" : { "$ref" : "#/definitions/localizable" }, + "finnish" : { + "$ref" : "#/definitions/localizable" + }, "french" : { "$ref" : "#/definitions/localizable" }, @@ -182,12 +185,21 @@ "polish" : { "$ref" : "#/definitions/localizable" }, + "portuguese" : { + "$ref" : "#/definitions/localizable" + }, "russian" : { "$ref" : "#/definitions/localizable" }, "spanish" : { "$ref" : "#/definitions/localizable" }, + "swedish" : { + "$ref" : "#/definitions/localizable" + }, + "turkish" : { + "$ref" : "#/definitions/localizable" + }, "ukrainian" : { "$ref" : "#/definitions/localizable" }, From cd91f6917233910dd52cb822cb65082aabf771fc Mon Sep 17 00:00:00 2001 From: heroesiiifan <77574150+heroesiiifan@users.noreply.github.com> Date: Sun, 16 Jul 2023 09:17:16 +0000 Subject: [PATCH 3/3] new languages in android --- .../java/eu/vcmi/vcmi/settings/LanguageSettingDialog.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/vcmi-app/src/main/java/eu/vcmi/vcmi/settings/LanguageSettingDialog.java b/android/vcmi-app/src/main/java/eu/vcmi/vcmi/settings/LanguageSettingDialog.java index 1fb5e8894..98bbcd9b2 100644 --- a/android/vcmi-app/src/main/java/eu/vcmi/vcmi/settings/LanguageSettingDialog.java +++ b/android/vcmi-app/src/main/java/eu/vcmi/vcmi/settings/LanguageSettingDialog.java @@ -15,13 +15,20 @@ public class LanguageSettingDialog extends LauncherSettingDialog static { AVAILABLE_LANGUAGES.add("english"); + AVAILABLE_LANGUAGES.add("czech"); AVAILABLE_LANGUAGES.add("chinese"); + AVAILABLE_LANGUAGES.add("finnish"); AVAILABLE_LANGUAGES.add("french"); AVAILABLE_LANGUAGES.add("german"); + AVAILABLE_LANGUAGES.add("hungarian"); + AVAILABLE_LANGUAGES.add("italian"); AVAILABLE_LANGUAGES.add("korean"); AVAILABLE_LANGUAGES.add("polish"); + AVAILABLE_LANGUAGES.add("portuguese"); AVAILABLE_LANGUAGES.add("russian"); AVAILABLE_LANGUAGES.add("spanish"); + AVAILABLE_LANGUAGES.add("swedish"); + AVAILABLE_LANGUAGES.add("turkish"); AVAILABLE_LANGUAGES.add("ukrainian"); AVAILABLE_LANGUAGES.add("other_cp1250"); AVAILABLE_LANGUAGES.add("other_cp1251");