]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Externalize error messages in the v2 API
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Wed, 10 Jul 2013 00:50:12 +0000 (00:50 +0000)
committerLuis A. Garcia <luis@linux.vnet.ibm.com>
Thu, 15 Aug 2013 14:20:46 +0000 (14:20 +0000)
commit681a898101f81dbe2317a84e4496bd1e000cf527
tree8fec288d994a0000faeac37f8c28280fac6599c1
parentc26066b96805aedbe5592060501e581da56709ae
Externalize error messages in the v2 API

This patch does more internationalization for the REST API error
messages that don't currently have it to take advantage of the new
support added by bp user-locale-api to show error messages in the locale
requested by the user through the Accept-Language HTTP header.

We only do v2 because consumers have used the response error message in
the past for error checks, so changing it in v1 too would break them.

Partially implements bp user-locale-api

Change-Id: I92780b42c125a91ab4916b7a31e4b71d306a89a1
cinder/api/v2/snapshots.py
cinder/api/v2/types.py
cinder/api/v2/volumes.py