[mod] use ask key for display_text instead and support i18n

This commit is contained in:
Laurent Peuch 2019-03-31 04:10:23 +02:00
parent b8c5e9f1b6
commit 0a3f12ed58

View file

@ -2204,7 +2204,7 @@ def _parse_action_args_in_yunohost_format(args, action_args, auth=None):
# do not print for webadmin
if arg_type == 'display_text' and msettings.get('interface') != 'api':
print(arg["text"])
print(_value_for_locale(arg['ask']))
continue
# Attempt to retrieve argument value