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

Fix edge case where 'help' key doesn't exists yet there's a translation for it ...

This commit is contained in:
Alexandre Aubin 2021-07-11 16:06:59 +02:00
parent 439d639fb7
commit 9d4eec6431

View file

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