def is_primary_language(language=None):
 if (not language):
  language = translation.get_language()
 return (language == settings.LANGUAGES[0][0])

def is_primary_language ( language = None ) : if ( not language ) : language = translation . get_language ( ) return ( language == settings . LANGUAGES [ 0 ] [ 0 ] )
returns true if current or passed language is the primary language for this site .