forked from extern/Unexpected-Keyboard
metadata: Remove metedata without a short_description
It is mandatory for Google Play.
This commit is contained in:
parent
a9f9bbec19
commit
0594127575
@ -1 +0,0 @@
|
||||
صفحه کلید غیرمنتظره
|
@ -1 +0,0 @@
|
||||
Unexpected Keyboard
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user