diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-03 02:34:47 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-03 02:34:47 +0200 | 
| commit | baa9d49e6c84cd88c3c950b59655f41b5294624e (patch) | |
| tree | 11ce0e041281179ab40bbaa54dbea3d0dbe29311 /example_project/settings.py | |
| parent | 56f2846e11716d6190fd5b4734f4c30598a42993 (diff) | |
| download | Ishtar-baa9d49e6c84cd88c3c950b59655f41b5294624e.tar.bz2 Ishtar-baa9d49e6c84cd88c3c950b59655f41b5294624e.zip | |
First work on i18n form to change language
Diffstat (limited to 'example_project/settings.py')
| -rw-r--r-- | example_project/settings.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/example_project/settings.py b/example_project/settings.py index 983339ee5..40aa25066 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -4,6 +4,8 @@  import os +from django.utils.translation import gettext_lazy as _ +  DEBUG = False  DEBUG_TOOLBAR = False  TEMPLATE_DEBUG = DEBUG @@ -52,6 +54,11 @@ USE_I18N = True  # If you set this to False, Django will not format dates, numbers and  # calendars according to the current locale  USE_L10N = True +LANGUAGES = ( +    ('fr', _('Français')), +    ('en', _('Anglais')), +) +DEFAULT_LANGUAGE = 1  # Absolute path to the directory that holds media.  # Example: "/home/media/media.lawrence.com/" | 
