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:
parent
439d639fb7
commit
9d4eec6431
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue