Change the language selector to the languages' own names

This commit is contained in:
Maximilian Krambach 2016-12-14 15:25:38 +01:00
parent 7cbc0d4bfe
commit 0e6324b252

View File

@ -125,12 +125,12 @@ angular.module('OpenSlidesApp.core', [
var current = gettextCatalog.getCurrentLanguage();
// Define here new languages...
var languages = [
{ code: 'en', name: gettext('English') },
{ code: 'de', name: gettext('German') },
{ code: 'fr', name: gettext('French') },
{ code: 'es', name: gettext('Spanish') },
{ code: 'pt', name: gettext('Portuguese') },
{ code: 'cs', name: gettext('Czech') },
{ code: 'en', name: 'English' },
{ code: 'de', name: 'Deutsch' },
{ code: 'fr', name: 'Français' },
{ code: 'es', name: 'Español' },
{ code: 'pt', name: 'Português' },
{ code: 'cs', name: 'Čeština'},
];
angular.forEach(languages, function (language) {
if (language.code == current)