From 35b1b65a542e62c763d68eea60684c3a0cc35957 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Mon, 24 Sep 2018 11:41:58 +0300 Subject: [PATCH] Add title to 'add' dialog for details of 'Sudo' entity To improve translation quality the title of 'Add' dialog, which is initialized within details of the entity, should be specified explicitly in the spec and should be an entire sentence. Fixes: https://pagure.io/freeipa/issue/7712 Fixes: https://pagure.io/freeipa/issue/7714 Reviewed-By: Serhii Tsymbaliuk --- install/ui/src/freeipa/sudo.js | 2 ++ ipaserver/plugins/internal.py | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/install/ui/src/freeipa/sudo.js b/install/ui/src/freeipa/sudo.js index c8880a671..62112e53f 100644 --- a/install/ui/src/freeipa/sudo.js +++ b/install/ui/src/freeipa/sudo.js @@ -156,6 +156,7 @@ return { width: '100px' } ], + add_title: '@i18n:objects.sudocmd.add_into_sudocmdgroups', remove_title: '@i18n:objects.sudocmd.remove_from_sudocmdgroups' } ], @@ -221,6 +222,7 @@ return { width: '100px' } ], + add_title: '@i18n:objects.sudocmdgroup.add_sudocmds', remove_title: '@i18n:objects.sudocmdgroup.remove_sudocmds' } ], diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index f1050d23b..ffe75b8d9 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -1202,6 +1202,10 @@ class i18n_messages(Command): }, "sudocmd": { "add": _("Add sudo command"), + "add_into_sudocmdgroups": _( + "Add sudo command '${primary_key}' into sudo command " + "groups" + ), "groups": _("Groups"), "remove": _("Remove sudo commands"), "remove_from_sudocmdgroups": _( @@ -1211,6 +1215,10 @@ class i18n_messages(Command): }, "sudocmdgroup": { "add": _("Add sudo command group"), + "add_sudocmds": _( + "Add sudo commands into sudo command group " + "'${primary_key}'" + ), "commands": _("Commands"), "remove": _("Remove sudo command groups"), "remove_sudocmds": _(