Fix this lang thing the correct way.
This commit is contained in:
parent
2bf861fb4d
commit
193d5c8337
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,6 @@ import logging
|
||||||
import sys
|
import sys
|
||||||
import askbot
|
import askbot
|
||||||
import site
|
import site
|
||||||
import gettext
|
|
||||||
|
|
||||||
#this line is added so that we can import pre-packaged askbot dependencies
|
#this line is added so that we can import pre-packaged askbot dependencies
|
||||||
ASKBOT_ROOT = os.path.abspath(os.path.dirname(askbot.__file__))
|
ASKBOT_ROOT = os.path.abspath(os.path.dirname(askbot.__file__))
|
||||||
|
@ -250,6 +249,7 @@ CACHES = {
|
||||||
'LOCATION': 'ask-staging'
|
'LOCATION': 'ask-staging'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gettext = lambda s: s
|
||||||
LANGUAGES = (
|
LANGUAGES = (
|
||||||
('es', gettext('Spanish')),
|
('es', gettext('Spanish')),
|
||||||
('en', gettext('English')),
|
('en', gettext('English')),
|
||||||
|
@ -269,6 +269,7 @@ CACHES = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gettext = lambda s: s
|
||||||
LANGUAGES = (
|
LANGUAGES = (
|
||||||
('es', gettext('Spanish')),
|
('es', gettext('Spanish')),
|
||||||
('en', gettext('English')),
|
('en', gettext('English')),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue