summaryrefslogtreecommitdiffstats
path: root/bin/keystone-all
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 /bin/keystone-all
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 'bin/keystone-all')
-rwxr-xr-xbin/keystone-all5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/keystone-all b/bin/keystone-all
index bb755606..187a2ee1 100755
--- a/bin/keystone-all
+++ b/bin/keystone-all
@@ -67,7 +67,10 @@ def serve(*servers):
if __name__ == '__main__':
- 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)
dev_conf = os.path.join(possible_topdir,
'etc',