From 70cb5ba0958b0a6380adcef0abfd39153359521c Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 21 Sep 2018 11:45:28 +0300 Subject: [PATCH] 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 --- install/ui/src/freeipa/otptoken.js | 1 + ipaserver/plugins/internal.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js index 263b03aee..9cd13b3b4 100644 --- a/install/ui/src/freeipa/otptoken.js +++ b/install/ui/src/freeipa/otptoken.js @@ -232,6 +232,7 @@ return { ], adder_dialog: { + title: '@i18n:objects.otptoken.add', $factory: otptoken.adder_dialog, $pre_ops: [ otptoken.adder_dialog_preop diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index f95245170..cdef6c96a 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -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 FreeOTP 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."),