Commit bd7d6716 authored by Yadd's avatar Yadd
Browse files

Load languages (#595)

parent 378d6c0a
......@@ -21,6 +21,7 @@ notification = 0
checkXSS = 0
portalSkin = bootstrap
staticPrefix = /static
languages = fr, en
templateDir = __pwd__/lemonldap-ng-portal/site/templates
[handler]
......
......@@ -120,6 +120,7 @@ sub reloadConf {
$self->conf->{templateDir} . '/' . $self->conf->{portalSkin};
$self->{staticPrefix} = $self->conf->{staticPrefix} || '/';
$self->{languages} = $self->conf->{languages} || '/';
# Initialize session DBs
unless ( $self->conf->{globalStorage} ) {
......
// Generated by CoffeeScript 1.10.0
(function() {
window.translatePage = function(lang) {
return $("[trspan]").each(function() {
return this.text(translate(this.attr('trspan')));
});
};
$(document).ready(function() {
return translatePage(lang);
});
}).call(this);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment