Ticket #17555: language-code-prefix-ending.patch
File language-code-prefix-ending.patch, 529 bytes (added by , 13 years ago) |
---|
-
django/utils/translation/trans_real.py
38 38 (?:\s*,\s*|$) # Multiple accepts per header. 39 39 ''', re.VERBOSE) 40 40 41 language_code_prefix_re = re.compile(r'^/([\w-]+) /')41 language_code_prefix_re = re.compile(r'^/([\w-]+)(/|$)') 42 42 43 43 def to_locale(language, to_lower=False): 44 44 """