Remove hard coded reference from gettextutils.py

The following commit 4fdcbff967
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
This commit is contained in:
Thang Pham 2014-07-18 11:29:24 -04:00
parent edcc9fd977
commit a074fec5f5
1 changed files with 3 additions and 3 deletions

View 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