def _dark_parse_accept_lang_header(accept):
 browser_langs = parse_accept_lang_header(accept)
 django_langs = []
 for (lang, priority) in browser_langs:
  lang = CHINESE_LANGUAGE_CODE_MAP.get(lang.lower(), lang)
  django_langs.append((lang, priority))
 return django_langs

def _dark_parse_accept_lang_header ( accept ) : browser_langs = parse_accept_lang_header ( accept ) django_langs = [ ] for ( lang , priority ) in browser_langs : lang = CHINESE_LANGUAGE_CODE_MAP . get ( lang . lower ( ) , lang ) django_langs . append ( ( lang , priority ) ) return django_langs
the use of zh-cn for simplified chinese and zh-tw for traditional chinese are now deprecated .