def all_languages():
 languages = [(lang[0], _(lang[1])) for lang in settings.ALL_LANGUAGES]
 return sorted(languages, key=(lambda lang: lang[1]))

def all_languages ( ) : languages = [ ( lang [ 0 ] , _ ( lang [ 1 ] ) ) for lang in settings . ALL_LANGUAGES ] return sorted ( languages , key = ( lambda lang : lang [ 1 ] ) )
retrieve the list of all languages .