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 /bin/keystone-all | |
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 'bin/keystone-all')
-rwxr-xr-x | bin/keystone-all | 5 |
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', |