From 0a3f12ed58d37e5722311041d8e696ebd6f52150 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 31 Mar 2019 04:10:23 +0200 Subject: [PATCH] [mod] use ask key for display_text instead and support i18n --- src/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 8561e2667..70d21afb1 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -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