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-api-cfn | |
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-api-cfn')
-rwxr-xr-x | bin/heat-api-cfn | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/heat-api-cfn b/bin/heat-api-cfn index db414d19b..8eceb6aef 100755 --- a/bin/heat-api-cfn +++ b/bin/heat-api-cfn @@ -22,7 +22,6 @@ calls the heat-engine via AMQP RPC to implement them. import eventlet eventlet.monkey_patch(os=False) -import gettext import os import sys @@ -34,7 +33,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 |