diff --git a/src/settings.py b/src/settings.py index 8dffeb1..e48a522 100644 --- a/src/settings.py +++ b/src/settings.py @@ -4,6 +4,7 @@ # determine if this is a production system import os import sys +from django.utils.translation import pgettext_lazy as _ DEBUG = True @@ -40,6 +41,11 @@ # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'de-DE' +LANGUAGES = [ + ("de", _("German")), + ("en", _("English")), +] + SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not @@ -95,10 +101,10 @@ # überschreiben! MIDDLEWARE = [ - 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', - 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', + 'django.middleware.common.CommonMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'feedback.auth.FSDebugRemoteUserMiddleware',