diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-08-18 22:30:05 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-08-18 22:30:05 +0000 |
commit | 9c92d27937f733645631eb43a1ad48bae78d630c (patch) | |
tree | 85dbaa61d42caf06246d90d97c0deeba943763ce /httpd/keystone.py | |
parent | 14cba15fcb9a03adb82bbe586f6431791077f1e8 (diff) | |
parent | 760856e9669b0af20909c56d4a5a082bd4d7e450 (diff) | |
download | keystone-9c92d27937f733645631eb43a1ad48bae78d630c.tar.gz keystone-9c92d27937f733645631eb43a1ad48bae78d630c.tar.xz keystone-9c92d27937f733645631eb43a1ad48bae78d630c.zip |
Merge "Add support for API message localization"
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 |