# HG changeset patch # User neko259 # Date 2013-08-05 09:15:05 # Node ID 4054e4b40666436917dd51a44b872e287af5817a # Parent 6d34bf73fbd7569b4498037d03579f0eb779cae6 Made English locale default system-wide. Use client-defined locale. This refs #36 diff --git a/neboard/settings.py b/neboard/settings.py --- a/neboard/settings.py +++ b/neboard/settings.py @@ -32,7 +32,7 @@ TIME_ZONE = 'Europe/Kiev' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'ru-RU' +LANGUAGE_CODE = 'en' SITE_ID = 1 @@ -103,8 +103,9 @@ TEMPLATE_CONTEXT_PROCESSORS = ( ) MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', # 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', @@ -195,4 +196,4 @@ LAST_REPLIES_COUNT = 3 ENABLE_CAPTCHA = True # if user tries to post before CAPTCHA_DEFAULT_SAFE_TIME. Captcha will be shown -CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds \ No newline at end of file +CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds