]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add CINDER_LOCALEDIR env variable
authorMark McLoughlin <markmc@redhat.com>
Wed, 8 May 2013 12:52:51 +0000 (13:52 +0100)
committerZhiteng Huang <zhiteng.huang@intel.com>
Mon, 13 May 2013 15:17:59 +0000 (23:17 +0800)
commit68f28d257c6e167bd819ae4ce385ae8c3602c8de
tree569df6dfdbba03c8318ba1c1c0b458671c5baa5e
parent7cfb0388fff7a1282141ed50b9b6d6cf65af55a1
Add CINDER_LOCALEDIR env variable

Part of fixing bug #995287

Syncs these two commits from oslo-incubator:

  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.

Change-Id: I86562b3a65d371673bb21f7179eecc7602bc0775
bin/cinder-all
bin/cinder-api
bin/cinder-backup
bin/cinder-clear-rabbit-queues
bin/cinder-manage
bin/cinder-scheduler
bin/cinder-volume
bin/cinder-volume-usage-audit
doc/source/devref/il8n.rst