]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use system locale when Accept-Language header is not provided
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Tue, 20 Aug 2013 16:47:38 +0000 (16:47 +0000)
committerLuis A. Garcia <luis@linux.vnet.ibm.com>
Tue, 20 Aug 2013 19:16:01 +0000 (19:16 +0000)
commit2672a1e24ed0ad0c189110eb04ddcba78cd48be5
tree061081acf87e11a8c403eb296643a194c2850b44
parentfc705de5e4058efcd9b4f268f1428bc8e673193c
Use system locale when Accept-Language header is not provided

Remove en_US as the default language when no header is provided, and use
None instead. Upon translation None will be defaulted to system as it
was before the translation changes.

Fixes bug: #1214476

Change-Id: I0fe22c526710e69ae0731e7d0b42170e6f3a8523
cinder/api/openstack/wsgi.py
cinder/tests/api/openstack/test_wsgi.py