From 14e21047e4c80369dafe584887fb073fb7dcf906 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Aug 14 2018 12:07:38 +0000 Subject: 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 --- diff --git a/install/ui/src/freeipa/widgets/SyncOTPScreen.js b/install/ui/src/freeipa/widgets/SyncOTPScreen.js index c42aa84..4abaf97 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];