aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/processing/task.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-04 09:44:07 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-04 09:44:07 +0100
commitc39b9afc83d5e0bfd9312d762a7b16955ba949ca (patch)
tree167cb865c794381e115305dc18270d8662b5c507 /mediagoblin/processing/task.py
parent78d932e7928a39311309e4e89a47fb3d992feac7 (diff)
downloadmediagoblin-c39b9afc83d5e0bfd9312d762a7b16955ba949ca.tar.lz
mediagoblin-c39b9afc83d5e0bfd9312d762a7b16955ba949ca.tar.xz
mediagoblin-c39b9afc83d5e0bfd9312d762a7b16955ba949ca.zip
Fallback to "en_US" if browser does not send preferred languages
E.g. in our test suite we don't send an "accepted languages" header, which caused the language matching to fail. So we need to explicitely fallback to en_US, in case request.accepted_languages is None. This fixes the tests and all cases where user browsers don't send preferred languages. This also fixes issue #562, the AVAILABLE_LOCALES are already case-normalized and we don't need to fudge the preferred language through the lower_upper_locale thing for each and every request. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/processing/task.py')
0 files changed, 0 insertions, 0 deletions