#NEWLINE# def get_record_label_i18n( self ) : #NEWLINE# #INDENT# rv = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( lang , _ ) in iteritems ( ( self . datamodel . label_i18n or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) : #NEWLINE# #INDENT# label = self . datamodel . format_record_label ( self , lang ) #NEWLINE# if ( not label ) : #NEWLINE# #INDENT# label = self . get_fallback_record_label ( lang ) #NEWLINE# #UNINDENT# rv [ lang ] = label #NEWLINE# #UNINDENT# if ( not rv ) : #NEWLINE# #INDENT# rv [ 'en' ] = self . get_fallback_record_label ( 'en' ) #NEWLINE# #UNINDENT# return rv