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 de62850ac5
commit 92ecdf29cd

View file

@ -275,7 +275,7 @@ def include_translations_in_manifest(manifest):
key = "%s_manifest_arguments_%s_help_%s" % (app_name, category, question["name"])
# 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]
return manifest