translate lanuage names in global_settings

Fixes: #1118
This commit is contained in:
Oskar Hahn 2013-11-24 09:58:48 +01:00
parent a604b36385
commit d02721a1f1

View File

@ -1,6 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
from django.utils.translation import ugettext_lazy
from openslides.utils.main import filesystem2unicode from openslides.utils.main import filesystem2unicode
@ -15,14 +18,12 @@ LOGIN_REDIRECT_URL = '/'
SESSION_COOKIE_NAME = 'OpenSlidesSessionID' SESSION_COOKIE_NAME = 'OpenSlidesSessionID'
ugettext = lambda s: s
LANGUAGES = ( LANGUAGES = (
('de', ugettext('German')), ('cs', ugettext_lazy('Czech')),
('en', ugettext('English')), ('en', ugettext_lazy('English')),
('fr', ugettext('French')), ('fr', ugettext_lazy('French')),
('cs', ugettext('Czech')), ('de', ugettext_lazy('German')),
('pt', ugettext('Portuguese')), ('pt', ugettext_lazy('Portuguese')),
) )
# If you set this to False, Django will make some optimizations so as not # If you set this to False, Django will make some optimizations so as not