diff options
| author | jaypipes@gmail.com <> | 2010-12-14 23:59:11 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-12-14 23:59:11 +0000 |
| commit | e328d7bbb18a4b32671f2016ef3dc1bd63cbe3a0 (patch) | |
| tree | ee290e371d787d6772589f4afcad8e8ec2fa09e1 /nova/tests | |
| parent | 87265fd2de6b73a32bd327553ce542ee5ec125b3 (diff) | |
| parent | 797e3f8a1cc72599aa8540b5655e29da8975e56f (diff) | |
Initial work on i18n. This adds the installation of the nova domain in gettext to all the "endpoints", which are all the bin/* files and run_tests.py.
In addition, we place a small hack in /nova/tests/__init__.py that allows nosetests to run without problems.
The next series of patches will "i18n"-ify the strings in Nova using the _() gettext function.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py index aaf213923..8dc87d0e2 100644 --- a/nova/tests/__init__.py +++ b/nova/tests/__init__.py @@ -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) |
