Initial i18n commit for endpoints. All endpoints must install

gettext, which injects the _ function into the builtins.
This commit is contained in:
jaypipes@gmail.com 2010-12-11 15:10:24 -05:00
parent 947b8a37aa
commit 0add1834e0

View File

@ -29,3 +29,8 @@
.. moduleauthor:: Manish Singh <yosh@gimp.org>
.. moduleauthor:: Andy Smith <andy@anarkystic.com>
"""
# See http://code.google.com/p/python-nose/issues/detail?id=373
# The code below enables nosetests to work with i18n _() blocks
import __builtin__
setattr(__builtin__, '_', lambda x: x)