]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove hard coded reference from gettextutils.py
authorThang Pham <thang.g.pham@gmail.com>
Fri, 18 Jul 2014 15:29:24 +0000 (11:29 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Fri, 18 Jul 2014 15:29:24 +0000 (11:29 -0400)
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

index e87fcfb30d0e4ce0be45b9236b1edce74a421f09..b0777a1b04d06a770f644257201fea65ec3e21f4 100644 (file)
@@ -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