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 authored and Rob Crittenden committed 2018-07-17 15:32:28 -04:00
1 parent 2a81ec3b94
commit 6bc3715045
2 files changed
+6 -5

No files matched your search

+5 -5
View File
@@ -24,10 +24,10 @@ define([
'dojo/on',
'../facets/Facet',
'../phases',
'../reg'
'../reg',
'../text'
],
function(declare, lang, on, Facet, phases, reg) {
function(declare, lang, on, Facet, phases, reg, text) {
/**
* Load Facet plugin
@@ -46,7 +46,7 @@ define([
{
$type: 'activity',
name: 'activity',
text: 'Loading',
text: text.get('@i18n:login.loading', 'Loading'),
visible: true
}
]
@@ -64,4 +64,4 @@ define([
});
return load;
});
});
+1
View File
@@ -352,6 +352,7 @@ class i18n_messages(Command):
"tickets (obtainable via kinit) and <a href='http://${host}/"
"ipa/config/ssbrowser.html'>configured</a> the browser "
"correctly, then click 'Log in'."),
"loading": _("Loading"),
"loading_md": _("Loading data"),
"login": _("Log in"),
"login_certificate": _("Log In Using Certificate"),