diff --git a/Bloxstrap/Locale.cs b/Bloxstrap/Locale.cs index 9ce7f72c..04eb5ec6 100644 --- a/Bloxstrap/Locale.cs +++ b/Bloxstrap/Locale.cs @@ -15,37 +15,37 @@ internal static class Locale { "nil", Strings.Common_SystemDefault }, { "en", "English" }, { "en-US", "English (United States)" }, - { "ar-SA", "العربية" }, - { "bg-BG", "Български" }, - { "bn-BD", "বাংলা" }, + { "ar", "العربية" }, + { "bg", "Български" }, + { "bn", "বাংলা" }, { "bs", "Босански" }, // { "cs", "Čeština" }, - { "de-DE", "Deutsch" }, + { "de", "Deutsch" }, // { "dk", "Dansk" }, { "es-ES", "Español" }, - { "fil-PH", "Filipino" }, - { "fi-FI", "Suomi" }, - { "fr-FR", "Français" }, - { "he-IL", "עברית‎" }, - { "hr-HR", "Hrvatski" }, - { "hi-IN", "Hindi (Latin)" }, - { "hu-HU", "Magyar" }, - { "id-ID", "Bahasa Indonesia" }, - { "it-IT", "Italiano" }, - { "ja-JP", "日本語" }, - { "ko-KR", "한국어" }, - { "lt-LT", "Lietuvių" }, - { "no-NO", "Bokmål" }, + { "fi", "Suomi" }, + { "fil", "Filipino" }, + { "fr", "Français" }, + { "he", "עברית‎" }, + { "hi", "Hindi (Latin)" }, + { "hr", "Hrvatski" }, + { "hu", "Magyar" }, + { "id", "Bahasa Indonesia" }, + { "it", "Italiano" }, + { "ja", "日本語" }, + { "ko", "한국어" }, + { "lt", "Lietuvių" }, + { "no", "Bokmål" }, // { "nl", "Nederlands" }, - { "pl-PL", "Polski" }, + { "pl", "Polski" }, { "pt-BR", "Português (Brasil)" }, - { "ro-RO", "Română" }, - { "ru-RU", "Русский" }, + { "ro", "Română" }, + { "ru", "Русский" }, { "sv-SE", "Svenska" }, - { "th-TH", "ภาษาไทย" }, - { "tr-TR", "Türkçe" }, - { "uk-UA", "Yкраїньска" }, - { "vi-VN", "Tiếng Việt" }, + { "th", "ภาษาไทย" }, + { "tr", "Türkçe" }, + { "uk", "Yкраїньска" }, + { "vi", "Tiếng Việt" }, { "zh-CN", "中文 (简体)" }, { "zh-HK", "中文 (廣東話)" }, { "zh-TW", "中文 (繁體)" } diff --git a/Scripts/Translations/prep.py b/Scripts/Translations/prep.py index b610ed3f..b5f08557 100644 --- a/Scripts/Translations/prep.py +++ b/Scripts/Translations/prep.py @@ -1,4 +1,4 @@ -import glob, shutil +import glob, shutil, re exports = input("Path of folder of exported Crowdin files: ") dest = input("Destination resources folder: ") @@ -6,9 +6,6 @@ for filename in glob.glob(f"{exports}\\**\\*.*", recursive=True): print(f"Copying {filename}") - suffix = "" + localeCode = re.search("\\\\([a-zA-Z\\-]+)\\\\Strings.", filename).group(1) - if filename.endswith("Strings.bs-BA.resx"): - suffix = "\\Strings.bs.resx" - - shutil.copy(filename, dest + suffix) \ No newline at end of file + shutil.copy(filename, dest + f"\\Strings.{localeCode}.resx") \ No newline at end of file