Fix translations at load_page 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:
Stanislav Levin
2018-06-26 18:06:21 +03:00
committed by Rob Crittenden
parent 2a81ec3b94
commit 6bc3715045
2 changed files with 6 additions and 5 deletions

View File

@@ -24,10 +24,10 @@ define([
'dojo/on', 'dojo/on',
'../facets/Facet', '../facets/Facet',
'../phases', '../phases',
'../reg' '../reg',
'../text'
], ],
function(declare, lang, on, Facet, phases, reg) { function(declare, lang, on, Facet, phases, reg, text) {
/** /**
* Load Facet plugin * Load Facet plugin
@@ -46,7 +46,7 @@ define([
{ {
$type: 'activity', $type: 'activity',
name: 'activity', name: 'activity',
text: 'Loading', text: text.get('@i18n:login.loading', 'Loading'),
visible: true visible: true
} }
] ]
@@ -64,4 +64,4 @@ define([
}); });
return load; return load;
}); });

View File

@@ -352,6 +352,7 @@ class i18n_messages(Command):
"tickets (obtainable via kinit) and <a href='http://${host}/" "tickets (obtainable via kinit) and <a href='http://${host}/"
"ipa/config/ssbrowser.html'>configured</a> the browser " "ipa/config/ssbrowser.html'>configured</a> the browser "
"correctly, then click 'Log in'."), "correctly, then click 'Log in'."),
"loading": _("Loading"),
"loading_md": _("Loading data"), "loading_md": _("Loading data"),
"login": _("Log in"), "login": _("Log in"),
"login_certificate": _("Log In Using Certificate"), "login_certificate": _("Log In Using Certificate"),