Merge pull request #1119 from ostcar/translate_languages
translate lanuage names in global_settings
This commit is contained in:
commit
d6a824936d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user