Ticket #16402: t16402.diff
File t16402.diff, 469 bytes (added by , 13 years ago) |
---|
-
django/templatetags/i18n.py
diff -r 1d89294a8145 django/templatetags/i18n.py
a b 399 399 400 400 """ 401 401 bits = token.split_contents() 402 if len(bits) <2:402 if len(bits) != 2: 403 403 raise TemplateSyntaxError("'%s' takes one argument (language)" % bits[0]) 404 404 language = parser.compile_filter(bits[1]) 405 405 nodelist = parser.parse(('endlanguage',))