diff options
Diffstat (limited to 'httpd/keystone.py')
-rw-r--r-- | httpd/keystone.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httpd/keystone.py b/httpd/keystone.py index c7373549..492d2519 100644 --- a/httpd/keystone.py +++ b/httpd/keystone.py @@ -7,7 +7,10 @@ from keystone.common import logging from keystone import config from keystone.openstack.common import gettextutils -gettextutils.install('keystone') +# NOTE(blk-u): 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) LOG = logging.getLogger(__name__) CONF = config.CONF |