]> review.fuel-infra Code Review - openstack-build/neutron-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 19:16:06 +0000 (19:16 +0000)
committerLuis A. Garcia <luis@linux.vnet.ibm.com>
Tue, 20 Aug 2013 19:16:22 +0000 (19:16 +0000)
commitd46e3cd59c374b01ff379e63c18cbb16e340fb98
treef90813f5b126ca016c44d14111194c3f50d9d0b2
parent589071a1fb1a783198bfe2da4e5c1213adbc9c1a
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
neutron/tests/unit/test_api_v2_resource.py
neutron/wsgi.py