def do_get_current_language_bidi(parser, token):
 args = token.contents.split()
 if ((len(args) != 3) or (args[1] != 'as')):
  raise TemplateSyntaxError(("'get_current_language_bidi' requires 'as variable' (got %r)" % args))
 return GetCurrentLanguageBidiNode(args[2])

def do_get_current_language_bidi ( parser , token ) : args = token . contents . split ( ) if ( ( len ( args ) != 3 ) or ( args [ 1 ] != 'as' ) ) : raise TemplateSyntaxError ( ( "'get_current_language_bidi' requires 'as variable' (got %r)" % args ) ) return GetCurrentLanguageBidiNode ( args [ 2 ] )
this will store the current language layout in the context .