summaryrefslogtreecommitdiffstats
path: root/httpd/keystone.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-08-18 22:30:05 +0000
committerGerrit Code Review <review@openstack.org>2013-08-18 22:30:05 +0000
commit9c92d27937f733645631eb43a1ad48bae78d630c (patch)
tree85dbaa61d42caf06246d90d97c0deeba943763ce /httpd/keystone.py
parent14cba15fcb9a03adb82bbe586f6431791077f1e8 (diff)
parent760856e9669b0af20909c56d4a5a082bd4d7e450 (diff)
downloadkeystone-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.py5
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