Disable lazy gettext
This change disables lazy gettext functionality in Keystone, due to problems with character encoding and logging detailed in bug 1225099. It is part of a series of commits across all projects with lazy gettext enabled. Change-Id: Ia934a7df9386baf6ae8eb9ff48c24386c47ecd23 Partial-bug: 1225099
This commit is contained in:
parent
4285b798a3
commit
1a0297e1f5
@ -39,11 +39,7 @@ from keystone.openstack.common import gettextutils
|
|||||||
# NOTE(blk-u):
|
# NOTE(blk-u):
|
||||||
# gettextutils.install() must run to set _ before importing any modules that
|
# gettextutils.install() must run to set _ before importing any modules that
|
||||||
# contain static translated strings.
|
# contain static translated strings.
|
||||||
#
|
gettextutils.install('keystone')
|
||||||
# Configure gettextutils for deferred translation of messages
|
|
||||||
# so that error messages in responses can be translated according to the
|
|
||||||
# Accept-Language in the request rather than the Keystone server locale.
|
|
||||||
gettextutils.install('keystone', lazy=True)
|
|
||||||
|
|
||||||
from keystone.common import environment
|
from keystone.common import environment
|
||||||
from keystone.common import utils
|
from keystone.common import utils
|
||||||
|
@ -24,11 +24,7 @@ from keystone.openstack.common import gettextutils
|
|||||||
# NOTE(blk-u):
|
# NOTE(blk-u):
|
||||||
# gettextutils.install() must run to set _ before importing any modules that
|
# gettextutils.install() must run to set _ before importing any modules that
|
||||||
# contain static translated strings.
|
# contain static translated strings.
|
||||||
#
|
gettextutils.install('keystone')
|
||||||
# Configure gettextutils for deferred translation of messages
|
|
||||||
# so that error messages in responses can be translated according to the
|
|
||||||
# Accept-Language in the request rather than the Keystone server locale.
|
|
||||||
gettextutils.install('keystone', lazy=True)
|
|
||||||
|
|
||||||
from keystone.common import environment
|
from keystone.common import environment
|
||||||
from keystone import config
|
from keystone import config
|
||||||
|
Loading…
Reference in New Issue
Block a user