Merge pull request #3547 from emanuelschuetze/fix-language-set

Fix regression of #3543: Missing function to set current language.
This commit is contained in:
Emanuel Schütze 2018-01-21 11:36:07 +01:00 committed by GitHub
commit 39c499dc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,7 @@ angular.module('OpenSlidesApp.core', [
if (language.code == lang) {
language.selected = true;
$sessionStorage.language = lang;
gettextCatalog.setCurrentLanguage(lang);
// Plugins
if (lang != 'en') {
gettextCatalog.loadRemote("static/i18n/" + lang + ".json").then(function (success) {