From f64f4254c48c0a0b12984e9381390395516f587c Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 14 Dec 2010 22:16:50 +0000 Subject: Enable dialect code. --- gentoo_ads/ads/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gentoo_ads') 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): -- cgit v1.2.3-65-gdbad