diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-03 19:48:12 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-03 19:48:12 +0200 | 
| commit | 0ad903aca0480ab521001165a276da47c140bc36 (patch) | |
| tree | 5b4197c0ac9c9a939c498324e0f0428af36078b2 /example_project/settings.py | |
| parent | baa9d49e6c84cd88c3c950b59655f41b5294624e (diff) | |
| download | Ishtar-0ad903aca0480ab521001165a276da47c140bc36.tar.bz2 Ishtar-0ad903aca0480ab521001165a276da47c140bc36.zip  | |
i18n to change language (refs #1383)
Diffstat (limited to 'example_project/settings.py')
| -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 = (  | 
