Add a title to 'remove' dialog for details of 'Sudo' entity

To improve translation quality the title of 'Remove' 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/7702
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-16 23:14:45 +03:00 committed by Serhii Tsymbaliuk
parent ea0e6a3663
commit db6462b826
2 changed files with 12 additions and 2 deletions

View File

@ -154,7 +154,8 @@ return {
name: 'description',
width: '100px'
}
]
],
remove_title: '@i18n:objects.sudocmd.remove_from_sudocmdgroups',
}
],
standard_association_facets: true,
@ -217,7 +218,8 @@ return {
name: 'description',
width: '100px'
}
]
],
remove_title: '@i18n:objects.sudocmdgroup.remove_sudocmds',
}
],
standard_association_facets: true,

View File

@ -963,10 +963,18 @@ class i18n_messages(Command):
"sudocmd": {
"groups": _("Groups"),
"remove": _("Remove sudo commands"),
"remove_from_sudocmdgroups": _(
"Remove sudo command '${primary_key}' from sudo command "
"groups"
),
},
"sudocmdgroup": {
"commands": _("Commands"),
"remove": _("Remove sudo command groups"),
"remove_sudocmds": _(
"Remove sudo commands from sudo command group "
"'${primary_key}'"
),
},
"sudorule": {
"allow": _("Allow"),