1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Make sure 'ask' key exists

This commit is contained in:
Alexandre Aubin 2021-03-16 02:46:47 +01:00
parent 4f2f213ab8
commit 8db3f391c9

View file

@ -268,7 +268,7 @@ def include_translations_in_manifest(manifest):
for question in questions:
key = "%s_manifest_arguments_%s_%s" % (app_name, category, question["name"])
# don't overwrite already existing translation in manifests for now
if translations.get(key) and not current_lang not in question["ask"]:
if translations.get(key) and "ask" in question and not current_lang not in question["ask"]:
#print("[ask]", current_lang, key)
question["ask"][current_lang] = translations[key]