Fix translation of "sync_otp" plugin

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:38:27 +03:00 committed by Serhii Tsymbaliuk
parent adfd82ee74
commit 1721356d53
2 changed files with 6 additions and 3 deletions

View File

@ -26,10 +26,12 @@ define(['dojo/_base/declare',
'../navigation',
'../phases',
'../reg',
'../text',
'../widget',
'../widgets/SyncOTPScreen'
],
function(declare, lang, on, Facet, auth, navigation, phases, reg, widget, SyncOTPScreen) {
function(declare, lang, on, Facet, auth, navigation, phases, reg, text,
widget, SyncOTPScreen) {
/**
* Sync OTP Facet plugin
@ -50,7 +52,7 @@ define(['dojo/_base/declare',
{
$type: 'activity',
name: 'activity',
text: 'Synchronizing',
text: text.get('@i18n:login.synchronizing', 'Synchronizing'),
visible: false
},
{
@ -100,4 +102,4 @@ define(['dojo/_base/declare',
});
return sync_otp;
});
});

View File

@ -362,6 +362,7 @@ class i18n_messages(Command):
"password": _("Password"),
"password_and_otp": _("Password or Password+One-Time-Password"),
"sync_otp_token": _("Sync OTP Token"),
"synchronizing": _("Synchronizing"),
"username": _("Username"),
},
"measurement_units": {