From 467d7e83a56b92a38255e386eba1cb8a8ebc628f Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 2 May 2026 20:11:56 +0200 Subject: Merge changes from Weblate (#1256) Co-authored-by: Anonymous Co-authored-by: Hosted Weblate Co-authored-by: solokot Co-authored-by: ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) Co-authored-by: Packss Co-authored-by: A Co-authored-by: Joppla Co-authored-by: Validbit Co-authored-by: Chasm Solacer Co-authored-by: Akal! Co-authored-by: Edgars Andersons Co-authored-by: Mehmet Ali Cuma Co-authored-by: 是果宝呐 Co-authored-by: Giuseppe Barichello Co-authored-by: marciozomb13 Co-authored-by: Bora Atıcı Co-authored-by: Péter Czeglédy Co-authored-by: Jonatas P Co-authored-by: Rasel Molla Co-authored-by: Bi Bi Le Co-authored-by: Juan M Sevilla Co-authored-by: Shine WaiLinn Co-authored-by: Sai Hak Moe Htike Co-authored-by: Matteo Borella Co-authored-by: Ulpi Antor Co-authored-by: Nataniel Dika Kurniawan Co-authored-by: Yusif Omran Co-authored-by: Samuel Jabez P Co-authored-by: Regu_Miabyss Co-authored-by: Tannaz M Co-authored-by: winver Co-authored-by: Summer-Box1228 Co-authored-by: E. Ta. Co-authored-by: Abo Moayd Co-authored-by: meQ Qentlh Co-authored-by: Adrià Vilanova Martínez Co-authored-by: QonDonion Co-authored-by: Leonardo Taglialegne Co-authored-by: Mikael Kujanpää Co-authored-by: Vaisakh K M Co-authored-by: Debojit Mozumder Co-authored-by: Rifat Co-authored-by: Guzleon --- sync_translations.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sync_translations.py') diff --git a/sync_translations.py b/sync_translations.py index 3d0ab7d..ca36ee6 100644 --- a/sync_translations.py +++ b/sync_translations.py @@ -9,6 +9,11 @@ import glob, os, sys # Sync store title and descriptions to the metadata directory. VALUE_DIR_TO_METADATA = { + "ar": "ar", + "ars": "ars", + "arz": "arz", + "bn-rBD": "bn-BD", + "ca": "ca", "cs": "cs-CZ", "de": "de-DE", "en": "en-US", @@ -21,15 +26,19 @@ VALUE_DIR_TO_METADATA = { "ja": "ja-JP", "ko": "ko-KR", "lv": "lv", + "my": "my", "nl": "nl-NL", "pl": "pl-PL", "pt": "pt-BR", "ro": "ro", "ru": "ru-RU", + "th": "th", + "tok": "tok", "tr": "tr-TR", "uk": "uk", "vi": "vi", "zh-rCN": "zh-CN", + "zh-rTW": "zh-TW", } # Dict of strings. Key is the pair string name and product field (often None). -- cgit v1.2.3 From e2fdced765366aa99b6a2f94253e18f568bf93e1 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 2 May 2026 21:34:19 +0200 Subject: releases: Update languages supported by Google Play (#1257) Remove languages from fastlane metadata that are not supported by Google Play and prevented the release from continuing.--- sync_translations.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'sync_translations.py') diff --git a/sync_translations.py b/sync_translations.py index ca36ee6..3532a27 100644 --- a/sync_translations.py +++ b/sync_translations.py @@ -8,17 +8,19 @@ import glob, os, sys # The baseline is 'values/strings.xml', which is english. # Sync store title and descriptions to the metadata directory. +# Map language codes to the codes that Google Play understands. Languages +# mapped to [None] are not supported by Google Play. VALUE_DIR_TO_METADATA = { "ar": "ar", - "ars": "ars", - "arz": "arz", - "bn-rBD": "bn-BD", + "ars": None, + "arz": None, + "bn-rBD": None, "ca": "ca", "cs": "cs-CZ", "de": "de-DE", "en": "en-US", "es": "es-ES", - "fa": "fa-IR", + "fa": None, "fil": "fil", "fr": "fr-FR", "in": "id", @@ -26,14 +28,14 @@ VALUE_DIR_TO_METADATA = { "ja": "ja-JP", "ko": "ko-KR", "lv": "lv", - "my": "my", + "my": None, "nl": "nl-NL", "pl": "pl-PL", "pt": "pt-BR", "ro": "ro", "ru": "ru-RU", "th": "th", - "tok": "tok", + "tok": None, "tr": "tr-TR", "uk": "uk", "vi": "vi", @@ -78,7 +80,10 @@ def sync_metadata(value_dir, strings): locale = os.path.basename(value_dir).removeprefix("values-") if not locale in VALUE_DIR_TO_METADATA: raise Exception("Locale '%s' not known, please add it into sync_translations.py" % locale) - meta_dir = "fastlane/metadata/android/" + VALUE_DIR_TO_METADATA[locale] + metadata_name = VALUE_DIR_TO_METADATA[locale] + if metadata_name == None: + return # Not supported by the play store + meta_dir = "fastlane/metadata/android/" + metadata_name def sync_meta_file(fname, string_name): if string_name in strings: string = strings[string_name] -- cgit v1.2.3