def get_language():
 t = getattr(_active, u'value', None)
 if (t is not None):
  try:
   return t.to_language()
  except AttributeError:
   pass
 from django.conf import settings
 return settings.LANGUAGE_CODE

def get_language ( ) : t = getattr ( _active , u'value' , None ) if ( t is not None ) : try : return t . to_language ( ) except AttributeError : pass from django . conf import settings return settings . LANGUAGE_CODE
returns the currently selected language .