Open visig9 opened 11 years ago
Yes, SimpleTemplate
set a _
variable, which probably override your _
.
https://github.com/defnull/bottle/blob/master/bottle.py#L3143
I'm sure it can be changed to not conflict with the underscore used by gettext
.
Look Here:
How could I access the gettext interface "_"?
The
_.get('__builtins__').get('_')('Translated Me')
really not a good idea... (becausexgettext
program are hard to parse and extract the string which need to be translated, and of course, it too long!)Thanks!
About gettext.install(): http://docs.python.org/3.3/library/gettext.html#gettext.install