Comment 1 for bug 1629569

Revision history for this message
Akihiro Motoki (amotoki) wrote :

The reason of this bug is that ugettext or gettext in Py3 is used to translate strings in non-lazy mode [1].
ugettext from python gettext does not take desired_locale argument [2] and the locale to be used is determined based on environment variables like LANG.

[1] http://git.openstack.org/cgit/openstack/oslo.i18n/tree/oslo_i18n/_factory.py#n55
[2] https://docs.python.org/2.7/library/gettext.html#the-gnutranslations-class