metadata: Remove metedata without a short_description

It is mandatory for Google Play.
This commit is contained in:
Jules Aguillon 2024-03-04 00:54:17 +01:00
parent a9f9bbec19
commit 0594127575
3 changed files with 2 additions and 2 deletions

View File

@ -1 +0,0 @@
صفحه کلید غیرمنتظره

View File

@ -1 +0,0 @@
Unexpected Keyboard

View File

@ -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)