diff options
author | Liang Chen <cbjchen@cn.ibm.com> | 2013-06-30 14:42:41 +0800 |
---|---|---|
committer | Liang Chen <cbjchen@cn.ibm.com> | 2013-06-30 14:42:41 +0800 |
commit | 48b243b35e020bee2d850389b059961a296f4dc2 (patch) | |
tree | 0222f6d07283eab222d1eda1def5f2b408878331 /bin/heat-engine | |
parent | da3b5ecfdd0c64805b40ecb535c077f9f0044988 (diff) | |
download | heat-48b243b35e020bee2d850389b059961a296f4dc2.tar.gz |
install "_" via gettextutils
avoid using two separate sets of translation messages when
HEAT_LOCALEDIR environment variable presents.
Fixes bug #1196184
Change-Id: Ief773b9f2674909de461e2b07f1b07d3c66521cc
Diffstat (limited to 'bin/heat-engine')
-rwxr-xr-x | bin/heat-engine | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/heat-engine b/bin/heat-engine index ef885b1df..3e0167a44 100755 --- a/bin/heat-engine +++ b/bin/heat-engine @@ -20,7 +20,6 @@ calls made by the user. Normal communications is done via the heat API which then calls into this engine. """ -import gettext import eventlet eventlet.monkey_patch() @@ -35,7 +34,9 @@ POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'heat', '__init__.py')): sys.path.insert(0, POSSIBLE_TOPDIR) -gettext.install('heat', unicode=1) +from heat.openstack.common import gettextutils + +gettextutils.install('heat') from oslo.config import cfg |