diff --git a/united4earth/server/settings_sample.py b/united4earth/server/settings_sample.py index 60c6f7e291ad552717b19fcb89b57c0a0c614694..ceca296b59a3bfb75eded1d533a06992ecf3cd19 100644 --- a/united4earth/server/settings_sample.py +++ b/united4earth/server/settings_sample.py @@ -140,34 +140,38 @@ ANONYMOUS_USER_NAME = None # Internationalization -#For Risefor Template -INTERNATIONAL_TEMPLATE = False #for Django -LANGUAGE_CODE = 'en' +LANGUAGE_CODE = 'fr' +MODELTRANSLATION_DEFAULT_LANGUAGE = 'fr' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True - -LANGUAGES = ( - ('en', ('English-Global')), - ('us', ('English-USA')), - ('fr', ('French')), - ('es', ('Spanish')), - ('it', ('Italia ')), -) -COUNTRIES_OVERRIDE = { - 'Global': { - 'name': _('Global'), - 'code':_('en') - }, -} - -MODELTRANSLATION_DEFAULT_LANGUAGE = 'en' prefix_default_language = False COUNTRIES_FLAG_URL = '/static/flags/img/{code}.svg' +#Make True to activate international template +INTERNATIONAL_TEMPLATE = False +if INTERNATIONAL_TEMPLATE == True: + #Below, add wanted languages + LANGUAGES = ( + ('en', ('English-Global')), + ('us', ('English-USA')), + ('fr', ('French')), + ('es', ('Spanish')), + ) + COUNTRIES_OVERRIDE = { + 'Global': { + 'name': _('Global'), + 'code':_('en') + }, + } +else: + LANGUAGES = ( + ('fr', ('French')), + ) + LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), )