fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patched django-modeltranslation to work correctly with south. Removed a weird migrati...
[wolnelektury.git]
/
wolnelektury
/
settings.py
diff --git
a/wolnelektury/settings.py
b/wolnelektury/settings.py
index
dcf0cc3
..
d40fd55
100644
(file)
--- a/
wolnelektury/settings.py
+++ b/
wolnelektury/settings.py
@@
-34,13
+34,14
@@
LANGUAGE_CODE = 'pl'
gettext = lambda s: s
LANGUAGES = (
gettext = lambda s: s
LANGUAGES = (
+ ('pl', gettext('Polish')),
('de', gettext('German')),
('en', gettext('English')),
('de', gettext('German')),
('en', gettext('English')),
- ('pl', gettext('Polish')),
('lt', gettext('Lithuanian')),
('fr', gettext('French')),
('ru', gettext('Russian')),
('lt', gettext('Lithuanian')),
('fr', gettext('French')),
('ru', gettext('Russian')),
- ('es', gettext('Spain')),
+ ('es', gettext('Spanish')),
+ ('uk', gettext('Ukrainian')),
)
)
@@
-122,11
+123,13
@@
INSTALLED_APPS = [
'pagination',
'chunks',
'compress',
'pagination',
'chunks',
'compress',
+ 'modeltranslation',
'catalogue',
'lessons',
'piston',
'api',
'rosetta',
'catalogue',
'lessons',
'piston',
'api',
'rosetta',
+ 'infopages',
]
CACHE_BACKEND = 'locmem:///?max_entries=3000'
]
CACHE_BACKEND = 'locmem:///?max_entries=3000'
@@
-180,6
+183,8
@@
THUMBNAIL_PROCESSORS = (
'sponsors.processors.add_padding',
)
'sponsors.processors.add_padding',
)
+TRANSLATION_REGISTRY = "wolnelektury.translation"
+
# Load localsettings, if they exist
try:
from localsettings import *
# Load localsettings, if they exist
try:
from localsettings import *