mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
[enh] help keys are now translatables
This commit is contained in:
parent
f8fbe69032
commit
b1757b72a2
1 changed files with 6 additions and 1 deletions
|
@ -51,9 +51,14 @@ def include_translations_in_manifest(app_name, manifest):
|
|||
for question in questions:
|
||||
key = "%s_manifest_arguments_%s_%s" % (app_name, category, question["name"])
|
||||
if key in translations and translations[key]:
|
||||
print current_lang, key
|
||||
print "[ask]", current_lang, key
|
||||
question["ask"][current_lang] = translations[key]
|
||||
|
||||
key = "%s_manifest_arguments_%s_help_%s" % (app_name, category, question["name"])
|
||||
if key in translations and translations[key]:
|
||||
print "[help]", current_lang, key
|
||||
question["help"][current_lang] = translations[key]
|
||||
|
||||
return manifest
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue