From a074fec5f5d27ba66602a5b6133e5bfd49808c57 Mon Sep 17 00:00:00 2001 From: Thang Pham Date: Fri, 18 Jul 2014 11:29:24 -0400 Subject: [PATCH] Remove hard coded reference from gettextutils.py The following commit 4fdcbff96790753a4c1a508600e5d78b2c3b7172 introduced a few hard coded references to '/home/jsbryant/cinder-dev/gettextutilsSync/' in cinder/openstack/common/gettextutils.py. This patch will removed those references. Change-Id: Ib880863d275ac102c1eb723972d1ebd2eb3405a1 Closes-Bug: #1344072 --- cinder/openstack/common/gettextutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cinder/openstack/common/gettextutils.py b/cinder/openstack/common/gettextutils.py index e87fcfb30..b0777a1b0 100644 --- a/cinder/openstack/common/gettextutils.py +++ b/cinder/openstack/common/gettextutils.py @@ -19,7 +19,7 @@ gettext for openstack-common modules. Usual usage in an openstack.common module: - from /home/jsbryant/cinder-dev/gettextutilsSync/cinder/.openstack.common.gettextutils import _ + from cinder.openstack.common.gettextutils import _ """ import copy @@ -121,7 +121,7 @@ class TranslatorFactory(object): # module within each application. # Create the global translation functions. -_translators = TranslatorFactory('/home/jsbryant/cinder-dev/gettextutilsSync/cinder/') +_translators = TranslatorFactory('cinder') # The primary translation function using the well-known name "_" _ = _translators.primary @@ -182,7 +182,7 @@ class Message(six.text_type): """ def __new__(cls, msgid, msgtext=None, params=None, - domain='/home/jsbryant/cinder-dev/gettextutilsSync/cinder/', *args): + domain='cinder', *args): """Create a new Message object. In order for translation to work gettext requires a message ID, this -- 2.45.2