Libraries need to translate strings according to their translation
domain but they should not override the default _() builtin (which
should only be installed by the top-level script) and instead should
gettextutils._().
To support the case where message catalogs are installed in a
non-default (and perhaps project-specific) location, we allow the
default localedir to be override with a project-specific environment
variable e.g. QUANTUMCLIENT_LOCALEDIR.
The code makes it seem like OSLO_LOCALEDIR is the env variable we're
adding but, in fact, update.py magically replaces 'oslo' with the
project name.
Reviewed: https:/ /review. openstack. org/25821 github. com/openstack/ oslo-incubator/ commit/ c8f676bb54158d1 a03aef231af920e eda9ebe1ba
Committed: http://
Submitter: Jenkins
Branch: master
commit c8f676bb54158d1 a03aef231af920e eda9ebe1ba
Author: Mark McLoughlin <email address hidden>
Date: Mon Apr 1 02:08:43 2013 +0100
Support overriding oslo localedir too
Part of fixing bug #995287
Libraries need to translate strings according to their translation s._().
domain but they should not override the default _() builtin (which
should only be installed by the top-level script) and instead should
gettextutil
To support the case where message catalogs are installed in a LOCALEDIR.
non-default (and perhaps project-specific) location, we allow the
default localedir to be override with a project-specific environment
variable e.g. QUANTUMCLIENT_
The code makes it seem like OSLO_LOCALEDIR is the env variable we're
adding but, in fact, update.py magically replaces 'oslo' with the
project name.
Change-Id: I62b66892a4e278 92ee488d2884ffd 2f40ab467ee