summaryrefslogtreecommitdiff
path: root/bin/heat-api-cfn
diff options
context:
space:
mode:
authorLiang Chen <cbjchen@cn.ibm.com>2013-06-30 14:42:41 +0800
committerLiang Chen <cbjchen@cn.ibm.com>2013-06-30 14:42:41 +0800
commit48b243b35e020bee2d850389b059961a296f4dc2 (patch)
tree0222f6d07283eab222d1eda1def5f2b408878331 /bin/heat-api-cfn
parentda3b5ecfdd0c64805b40ecb535c077f9f0044988 (diff)
downloadheat-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-xbin/heat-api-cfn5
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