diff options
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index 40aa25066..d45770277 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -55,8 +55,8 @@ USE_I18N = True # calendars according to the current locale USE_L10N = True LANGUAGES = ( - ('fr', _('Français')), - ('en', _('Anglais')), + ('fr', u'Français'), + ('en', u'English'), ) DEFAULT_LANGUAGE = 1 @@ -82,6 +82,7 @@ MIDDLEWARE_CLASSES = [ 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.locale.LocaleMiddleware', ] TEMPLATE_CONTEXT_PROCESSORS = ( |