@register.tag('get_language_info_list')
def do_get_language_info_list(parser, token):
 args = token.split_contents()
 if ((len(args) != 5) or (args[1] != 'for') or (args[3] != 'as')):
  raise TemplateSyntaxError(("'%s' requires 'for sequence as variable' (got %r)" % (args[0], args[1:])))
 return GetLanguageInfoListNode(parser.compile_filter(args[2]), args[4])

@ register . tag ( 'get_language_info_list' ) def do_get_language_info_list ( parser , token ) : args = token . split_contents ( ) if ( ( len ( args ) != 5 ) or ( args [ 1 ] != 'for' ) or ( args [ 3 ] != 'as' ) ) : raise TemplateSyntaxError ( ( "'%s' requires 'for sequence as variable' (got %r)" % ( args [ 0 ] , args [ 1 : ] ) ) ) return GetLanguageInfoListNode ( parser . compile_filter ( args [ 2 ] ) , args [ 4 ] )
this will store a list of language information dictionaries for the given language codes in a context variable .