glance/glance/common
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
..
location_strategy Use six.moves.urllib.parse instead of urlparse 2014-02-17 09:52:00 +08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
auth.py Merge "Rename Openstack to OpenStack" 2014-02-27 08:51:42 +00:00
client.py Merge "Keep py3.X compatibility for urllib" 2014-02-25 15:02:57 +00:00
config.py Added undescore function to some strings 2014-02-21 15:00:59 +04:00
crypt.py Remove vim header 2014-01-14 16:03:28 +00:00
exception.py Add support for API message localization 2014-03-04 14:18:28 +08:00
property_utils.py Fix misspellings in glance 2014-02-07 14:49:58 +08:00
rpc.py Add support for API message localization 2014-03-04 14:18:28 +08:00
utils.py Enable hacking H301 and disable H304, H302 2014-02-18 16:05:18 +04:00
wsgi.py Add support for API message localization 2014-03-04 14:18:28 +08:00