glance/glance
Fei Long Wang f70b72b78b Add support for API message localization
Add support for doing language resolution for a request,
based on the Accept-Language HTTP header. For example,
an HTTP client can receive API messages in Chinese even
if the locale language of the server is English.

The underscore (_) method is initialized so that it returns
openstack.common.gettextutils.Message objects. The locale
of these Message objects is set when exceptions with which
they are associated are raised in the context of an HTTP
request.

docImpact
Partially implements bp i18n-messages

Signed-off-by: Fei Long Wang <flwang@cn.ibm.com>
Signed-off-by: John Warren <jswarren@us.ibm.com>

Change-Id: I352cda57fe119022c59c6c813b5c8053765b2d3c
2014-03-04 14:18:28 +08:00
..
api Add support for API message localization 2014-03-04 14:18:28 +08:00
cmd Add support for API message localization 2014-03-04 14:18:28 +08:00
common Add support for API message localization 2014-03-04 14:18:28 +08:00
db Merge "Replaced calls of get(foo, None) -> get(foo)" 2014-03-03 13:30:13 +00:00
domain Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
image_cache Add support for API message localization 2014-03-04 14:18:28 +08:00
locale Imported Translations from Transifex 2014-01-31 06:02:06 +00:00
openstack Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
quota Enable F841 check 2014-02-13 16:54:12 +04:00
registry Enable F841 check 2014-02-13 16:54:12 +04:00
store Add support for API message localization 2014-03-04 14:18:28 +08:00
tests Add support for API message localization 2014-03-04 14:18:28 +08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Fix logging context to include user_identity 2014-02-21 17:19:31 +01:00
gateway.py Use common Oslo database session 2014-01-03 05:37:41 +04:00
notifier.py Add support for API message localization 2014-03-04 14:18:28 +08:00
schema.py Add support for API message localization 2014-03-04 14:18:28 +08:00
scrubber.py Merge "Enable F841 check" 2014-02-18 08:08:14 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00