Skip to content

Commit

Permalink
changed settings for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
4-dash committed Sep 27, 2024
1 parent be237bc commit 54f862d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 54f862d

Please sign in to comment.