Fix locale support

This commit is contained in:
Jan Dittberner 2018-12-26 14:51:34 +01:00
parent 24009bff3e
commit 10a83d36f7

View file

@ -86,7 +86,7 @@ USE_TZ = True
LOCALE_PATHS = ( LOCALE_PATHS = (
normpath(join(SITE_ROOT, 'locale')), normpath(join(SITE_ROOT, 'gnuviechadmin', 'locale')),
) )
@ -175,9 +175,9 @@ MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
# uncomment next line to enable translation to browser locale # uncomment next line to enable translation to browser locale
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
# ######### END MIDDLEWARE CONFIGURATION # ######### END MIDDLEWARE CONFIGURATION