mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 01:44:40 +00:00
Enable i18n
This commit is contained in:
parent
49e084189d
commit
918570cf9e
@ -36,6 +36,11 @@ TIME_ZONE = 'America/Chicago'
|
||||
# http://www.i18nguy.com/unicode/language-identifiers.html
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
LANGUAGES = (
|
||||
('en', 'English'),
|
||||
('ru', 'Russian'),
|
||||
)
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
# If you set this to False, Django will make some optimizations so as not
|
||||
@ -76,6 +81,7 @@ MIDDLEWARE_CLASSES = (
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'pyi2phosts.urls'
|
||||
|
@ -49,6 +49,7 @@ urlpatterns = patterns('',
|
||||
(r'^search/$', include('pyi2phosts.search.urls')),
|
||||
(r'^postkey/', include('pyi2phosts.postkey.urls')),
|
||||
(r'^jump/', include('pyi2phosts.jump.urls')),
|
||||
(r'^i18n/', include('django.conf.urls.i18n')),
|
||||
# Example:
|
||||
# (r'^pyi2phosts.', include('pyi2phosts.foo.urls')),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user