Ticket #17555: language-code-prefix-ending.patch

File language-code-prefix-ending.patch, 529 bytes (added by Vlada Macek, 13 years ago)
  • django/utils/translation/trans_real.py

     
    3838        (?:\s*,\s*|$)                                 # Multiple accepts per header.
    3939        ''', re.VERBOSE)
    4040
    41 language_code_prefix_re = re.compile(r'^/([\w-]+)/')
     41language_code_prefix_re = re.compile(r'^/([\w-]+)(/|$)')
    4242
    4343def to_locale(language, to_lower=False):
    4444    """
Back to Top