[enh] help keys are now translatables

This commit is contained in:
Laurent Peuch 2017-04-06 15:00:58 +02:00
parent f8fbe69032
commit b1757b72a2

View file

@ -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