aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-12-14 22:16:50 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-12-14 22:16:50 +0000
commitf64f4254c48c0a0b12984e9381390395516f587c (patch)
treeb742d57ae5f2b62d5adab7f3ed0b7e6ce43e6363
parentMore splitting. (diff)
downloadgentoo-ads-f64f4254c48c0a0b12984e9381390395516f587c.tar.gz
gentoo-ads-f64f4254c48c0a0b12984e9381390395516f587c.tar.bz2
gentoo-ads-f64f4254c48c0a0b12984e9381390395516f587c.zip
Enable dialect code.
-rw-r--r--gentoo_ads/ads/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gentoo_ads/ads/views.py b/gentoo_ads/ads/views.py
index 141ecaf..57050b3 100644
--- a/gentoo_ads/ads/views.py
+++ b/gentoo_ads/ads/views.py
@@ -25,9 +25,9 @@ def _build_lang_array(request):
#accept_langs = [_.strip() for _ in accept_langs_raw.split(',')]
accept_langs = accept_langs_raw.split(',')
# Handle dialects
- #for _ in accept_langs:
- # if '-' in _:
- # accept_langs += [ re.sub('[-_][_-a-zA-Z0-9]+', '', _) ]
+ for _ in accept_langs:
+ if '-' in _:
+ accept_langs += [ re.sub('[-_][_-a-zA-Z0-9]+', '', _) ]
return accept_langs
def _match_langs(accept_langs, available_langs):