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 <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-24 11:41:58 +03:00 committed by Serhii Tsymbaliuk
parent 30094d8212
commit 35b1b65a54
2 changed files with 10 additions and 0 deletions

View File

@ -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'
}
],

View File

@ -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": _(