From 3c469c99d45fe496eeabbd6a7ec0c43b56b51280 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 24 Aug 2019 11:33:43 +0200 Subject: [PATCH] Also translate generator and setting group names in web UI --- scripts/boxesserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/boxesserver b/scripts/boxesserver index 6471dba..e5d2803 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -239,7 +239,7 @@ class BServer:

-

""", name, """

+

""", _(name), """

""", _(box.__doc__) if box.__doc__ else "", """

""" % (action)] @@ -250,7 +250,7 @@ class BServer: if len(group._group_actions) == 1 and isinstance(group._group_actions[0], argparse._HelpAction): continue prefix = getattr(group, "prefix", None) - result.append('''

%s

\n\n''' % (groupid, groupid, group.title, groupid)) + result.append('''

%s

\n
\n''' % (groupid, groupid, _(group.title), groupid)) for a in group._group_actions: if a.dest in ("input", "output"): continue