From 8fa4028d85fd61be5783269e412ec796faaf3de9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface <yb@enix.org> Date: Thu, 27 Dec 2012 14:59:05 +0100 Subject: [PATCH] Activate locale middleware --- youmap/settings/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youmap/settings/base.py b/youmap/settings/base.py index 701948c..29b07fc 100644 --- a/youmap/settings/base.py +++ b/youmap/settings/base.py @@ -1,3 +1,5 @@ +# -*- coding:utf-8 -*- + """Base settings shared by all environments""" # Import global settings to make it easier to extend settings. from django.conf.global_settings import * # pylint: disable=W0614,W0401 @@ -19,6 +21,7 @@ USE_L10N = True LANGUAGE_CODE = 'en' LANGUAGES = ( ('en', 'English'), + ('fr', u'Francais'), ) # Make this unique, and don't share it with anybody. @@ -117,7 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS += ( #============================================================================== MIDDLEWARE_CLASSES += ( - # 'django.middleware.transaction.TransactionMiddleware', + 'django.middleware.locale.LocaleMiddleware', ) #============================================================================== -- GitLab