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 /bin/nova-api | |
| parent | 87265fd2de6b73a32bd327553ce542ee5ec125b3 (diff) | |
| parent | 797e3f8a1cc72599aa8540b5655e29da8975e56f (diff) | |
| download | nova-e328d7bbb18a4b32671f2016ef3dc1bd63cbe3a0.tar.gz nova-e328d7bbb18a4b32671f2016ef3dc1bd63cbe3a0.tar.xz nova-e328d7bbb18a4b32671f2016ef3dc1bd63cbe3a0.zip | |
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 'bin/nova-api')
| -rwxr-xr-x | bin/nova-api | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/nova-api b/bin/nova-api index a9c53dbcd..2ae6a099a 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -21,6 +21,7 @@ Nova API daemon. """ +import gettext import os import sys @@ -32,6 +33,8 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')): sys.path.insert(0, possible_topdir) +gettext.install('nova', unicode=1) + from nova import flags from nova import utils from nova import server |
