#NEWLINE# def do_get_current_language( parser , token ) : #NEWLINE# #INDENT# "\n    This will store the current language in the context.\n\n    Usage::\n\n        {% get_current_language as language %}\n\n    This will fetch the currently active language and\n    put it's value into the ``language`` context\n    variable.\n    " #NEWLINE# args = token . contents . split ( ) #NEWLINE# if ( ( len ( args ) != 3 ) or ( args [ 1 ] != 'as' ) ) : #NEWLINE# #INDENT# raise TemplateSyntaxError ( ( "'get_current_language' requires 'as variable' (got %r)" % token ) ) #NEWLINE# #UNINDENT# return GetCurrentLanguageNode ( args [ 2 ] )