diff options
| author | Jules Aguillon | 2024-03-04 00:54:17 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-03-04 00:57:23 +0100 |
| commit | 0594127575e872f8a9b8b17d81591fe4a44a1c4c (patch) | |
| tree | fe7ea7311f145b8d330957c618a15a4e15e27457 | |
| parent | a9f9bbec19369c2e502789dfec7e368172a9a9e3 (diff) | |
| download | unexpected-keyboard-0594127575e872f8a9b8b17d81591fe4a44a1c4c.tar.gz unexpected-keyboard-0594127575e872f8a9b8b17d81591fe4a44a1c4c.zip | |
metadata: Remove metedata without a short_description
It is mandatory for Google Play.
| -rw-r--r-- | metadata/android/fa-IR/title.txt | 1 | ||||
| -rw-r--r-- | metadata/android/zh-CN/title.txt | 1 | ||||
| -rw-r--r-- | sync_translations.py | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/metadata/android/fa-IR/title.txt b/metadata/android/fa-IR/title.txt deleted file mode 100644 index ab06900..0000000 --- a/metadata/android/fa-IR/title.txt +++ /dev/null @@ -1 +0,0 @@ -صفحه کلید غیرمنتظره diff --git a/metadata/android/zh-CN/title.txt b/metadata/android/zh-CN/title.txt deleted file mode 100644 index c18b05b..0000000 --- a/metadata/android/zh-CN/title.txt +++ /dev/null @@ -1 +0,0 @@ -Unexpected Keyboard diff --git a/sync_translations.py b/sync_translations.py index 58a356c..9aa748a 100644 --- a/sync_translations.py +++ b/sync_translations.py @@ -60,6 +60,8 @@ def sync(baseline, strings): for key, base_string in baseline.items() ] def sync_metadata(value_dir, strings): + if "short_description" not in strings: + return # Short description is mandatory, do nothing without it. 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) |
