Support overriding oslo localedir too
Add a gettextutils.install() helper function
to get a new gettextutils.install() function which allows the default
localedir to be overwritten via an environment variable.
Note that gettextutils.install() must be called before any other cinder
modules are imported since some modules attempt to translate strings
at import time (e.g. in cinder.flags). This is broken and inefficient,
but fixing it involves adding something like sphinx's l_() function and
would be very invaisve.
Reviewed: https:/ /review. openstack. org/28544 github. com/openstack/ cinder/ commit/ 68f28d257c6e167 bd819ae4ce385ae 8c3602c8de
Committed: http://
Submitter: Jenkins
Branch: master
commit 68f28d257c6e167 bd819ae4ce385ae 8c3602c8de
Author: Mark McLoughlin <email address hidden>
Date: Wed May 8 13:52:51 2013 +0100
Add CINDER_LOCALEDIR env variable
Part of fixing bug #995287
Syncs these two commits from oslo-incubator:
Support overriding oslo localedir too install( ) helper function
Add a gettextutils.
to get a new gettextutils. install( ) function which allows the default
localedir to be overwritten via an environment variable.
Note that gettextutils. install( ) must be called before any other cinder
modules are imported since some modules attempt to translate strings
at import time (e.g. in cinder.flags). This is broken and inefficient,
but fixing it involves adding something like sphinx's l_() function and
would be very invaisve.
Change-Id: I86562b3a65d371 673bb21f7179eec c7602bc0775