mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Fix translations at login plugin
To be translatable text field should be marked with @i18n. Also these messages should be provided by i18n_messages. Fixes: https://pagure.io/freeipa/issue/7559 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
5d8fde0ac1
commit
2a81ec3b94
@ -26,9 +26,10 @@ define(['dojo/_base/declare',
|
||||
'../phases',
|
||||
'../reg',
|
||||
'../widget',
|
||||
'../widgets/LoginScreen'
|
||||
'../widgets/LoginScreen',
|
||||
'../text'
|
||||
],
|
||||
function(declare, lang, on, Facet, auth, phases, reg, widget, LoginScreen) {
|
||||
function(declare, lang, on, Facet, auth, phases, reg, widget, LoginScreen, text) {
|
||||
|
||||
/**
|
||||
* Login Facet plugin
|
||||
@ -48,7 +49,7 @@ define(['dojo/_base/declare',
|
||||
{
|
||||
$type: 'activity',
|
||||
name: 'activity',
|
||||
text: 'Authenticating',
|
||||
text: text.get('@i18n:login.authenticating', 'Authenticating'),
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
|
@ -340,6 +340,7 @@ class i18n_messages(Command):
|
||||
"pad": _("PAD"),
|
||||
},
|
||||
"login": {
|
||||
"authenticating": _("Authenticating"),
|
||||
"form_auth": _(
|
||||
"<i class=\"fa fa-info-circle\"></i> To log in with "
|
||||
"<strong>username and password</strong>, enter them in the "
|
||||
|
Loading…
Reference in New Issue
Block a user