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 | 2fce3c503508a932d7e974d41ff15ad4bf86a79b (patch) | |
| tree | 11ce0e041281179ab40bbaa54dbea3d0dbe29311 /example_project/settings.py | |
| parent | 83ccb14e284f1ef3fe0c78ce705fa8fb15bb505a (diff) | |
| download | Ishtar-2fce3c503508a932d7e974d41ff15ad4bf86a79b.tar.bz2 Ishtar-2fce3c503508a932d7e974d41ff15ad4bf86a79b.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/" | 
