Fix regression of #3543: Missing function to set current language.

This commit is contained in:
Emanuel Schütze 2018-01-21 10:04:50 +01:00
parent 3d04594fc7
commit fd709c8203

View File

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