@register.simple_tag
def locale_align():
 return ((trans_real.get_language_bidi() and 'right') or 'left')

@ register . simple_tag def locale_align ( ) : return ( ( trans_real . get_language_bidi ( ) and 'right' ) or 'left' )
returns current locales default alignment .