Add title to 'add' dialog for details of 'OTP Tokens' 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 35b1b65a54
commit 958b105761
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -1042,6 +1042,9 @@ class i18n_messages(Command):
},
"otptoken": {
"add": _("Add OTP token"),
"add_users_managing": _(
"Add users managing OTP token '${primary_key}'"
),
"app_link": _("You can use <a href=\"${link}\" target=\"_blank\">FreeOTP<a/> as a software OTP token application."),
"config_title": _("Configure your token"),
"config_instructions": _("Configure your token by scanning the QR code below. Click on the QR code if you see this on the device you want to configure."),