Ticket #16402: t16402.diff

File t16402.diff, 469 bytes (added by Florian Apolloner, 13 years ago)
  • django/templatetags/i18n.py

    diff -r 1d89294a8145 django/templatetags/i18n.py
    a b  
    399399
    400400    """
    401401    bits = token.split_contents()
    402     if len(bits) < 2:
     402    if len(bits) != 2:
    403403        raise TemplateSyntaxError("'%s' takes one argument (language)" % bits[0])
    404404    language = parser.compile_filter(bits[1])
    405405    nodelist = parser.parse(('endlanguage',))
Back to Top