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 <stsymbal@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Stanislav Levin 2018-07-06 13:05:13 +03:00 committed by Serhii Tsymbaliuk
parent 1721356d53
commit 14e21047e4

View File

@ -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];