summaryrefslogtreecommitdiffstats
path: root/bin/nova-api
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-12-14 23:59:11 +0000
committerTarmac <>2010-12-14 23:59:11 +0000
commite328d7bbb18a4b32671f2016ef3dc1bd63cbe3a0 (patch)
treeee290e371d787d6772589f4afcad8e8ec2fa09e1 /bin/nova-api
parent87265fd2de6b73a32bd327553ce542ee5ec125b3 (diff)
parent797e3f8a1cc72599aa8540b5655e29da8975e56f (diff)
downloadnova-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-xbin/nova-api3
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