Add a title to 'remove' dialog for details of 'OTP Tokens' 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 db6462b826
commit f741c62f59
2 changed files with 5 additions and 1 deletions

View File

@ -226,7 +226,8 @@ return {
$type: 'association', $type: 'association',
name: 'managedby_user', name: 'managedby_user',
add_method: 'add_managedby', add_method: 'add_managedby',
remove_method: 'remove_managedby' remove_method: 'remove_managedby',
remove_title: '@i18n:objects.otptoken.remove_users_managing',
} }
], ],

View File

@ -833,6 +833,9 @@ class i18n_messages(Command):
"disable": _("Disable token"), "disable": _("Disable token"),
"enable": _("Enable token"), "enable": _("Enable token"),
"remove": _("Remove OTP tokens"), "remove": _("Remove OTP tokens"),
"remove_users_managing": _(
"Remove users managing OTP token '${primary_key}'"
),
"show_qr": _("Show QR code"), "show_qr": _("Show QR code"),
"show_uri": _("Show configuration uri"), "show_uri": _("Show configuration uri"),
"type_hotp": _("Counter-based (HOTP)"), "type_hotp": _("Counter-based (HOTP)"),