[issue18217] Deprecate and remove gettext.install

Alex Gaynor report at bugs.python.org
Fri Jun 14 23:46:35 CEST 2013


Alex Gaynor added the comment:

I think the code makes what this does much clearer: http://hg.python.org/cpython/file/01da7bf11ca1/Lib/gettext.py#l209

There's no reason you can't make your own translation object, and expose it's gettext method as as your API, and then you can update the underlying translation object to check locales. This is approximately exactly how Django works.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18217>
_______________________________________


More information about the Python-bugs-list mailing list