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.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/templatetags/i18n.py/do_get_current_language_bidi