From 14e21047e4c80369dafe584887fb073fb7dcf906 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 6 Jul 2018 13:05:13 +0300 Subject: [PATCH] Fix translation of "SyncOTPScreen" widget To be translatable messages should be marked with '@i18n' and present in "i18n_messages" dictionary. Fixes: https://pagure.io/freeipa/issue/7621 Reviewed-By: Serhii Tsymbaliuk Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/widgets/SyncOTPScreen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/ui/src/freeipa/widgets/SyncOTPScreen.js b/install/ui/src/freeipa/widgets/SyncOTPScreen.js index c42aa849d..4abaf97eb 100644 --- a/install/ui/src/freeipa/widgets/SyncOTPScreen.js +++ b/install/ui/src/freeipa/widgets/SyncOTPScreen.js @@ -63,7 +63,7 @@ define(['dojo/_base/declare', render_buttons: function(container) { this.cancel_btn_node = IPA.button({ name: 'cancel', - label: 'Cancel', + label: text.get('@i18n:buttons.cancel', "Cancel"), 'class': 'btn-default btn-lg', click: this.on_cancel.bind(this) })[0]; @@ -71,7 +71,7 @@ define(['dojo/_base/declare', construct.place(this.cancel_btn_node, container); } this.sync_btn_node = IPA.button({ - label: text.get('@i18n:password.sync_otp_token', "Sync OTP Token"), + label: text.get('@i18n:login.sync_otp_token', "Sync OTP Token"), 'class': 'btn-primary btn-lg', click: this.on_confirm.bind(this) })[0];