#NEWLINE# def get_language_tabs( self , request , available_languages ) : #NEWLINE# #INDENT# tabs = [ ] #NEWLINE# get = request . GET . copy ( ) #NEWLINE# language = self . _language ( request ) #NEWLINE# for ( key , name ) in settings . LANGUAGES : #NEWLINE# #INDENT# get [ 'language' ] = name #NEWLINE# url = ( '%s?%s' % ( request . path , get . urlencode ( ) ) ) #NEWLINE# if ( language == key ) : #NEWLINE# #INDENT# status = 'current' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key in available_languages ) : #NEWLINE# #INDENT# status = 'available' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# status = 'empty' #NEWLINE# #UNINDENT# #UNINDENT# tabs . append ( ( url , name , key , status ) ) #NEWLINE# #UNINDENT# return tabs