Add title to 'add' dialog for 'OTP' entity

To improve translation quality the title of 'Add' dialog should be
specified explicitly in the spec and should be an entire sentence.

Fixes: https://pagure.io/freeipa/issue/7707
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-21 11:45:28 +03:00 committed by Serhii Tsymbaliuk
parent c6221a5104
commit 70cb5ba095
2 changed files with 2 additions and 1 deletions

View File

@ -232,6 +232,7 @@ return {
],
adder_dialog: {
title: '@i18n:objects.otptoken.add',
$factory: otptoken.adder_dialog,
$pre_ops: [
otptoken.adder_dialog_preop

View File

@ -935,7 +935,7 @@ class i18n_messages(Command):
"users": _("Users"),
},
"otptoken": {
"add_token": _("Add OTP Token"),
"add": _("Add OTP token"),
"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."),