(self, files, trash)
return (msg, trash)
If user send to trash, but send2trash is unavailable, we suggest deleting permanently
If user send to trash, but send2trash is unavailable, we suggest deleting permanently
If user send to trash but send2trash is unavailable we suggest deleting permanently
def setup_msg(self, files, trash):
        '''If user send to trash, but send2trash is unavailable, we suggest deleting permanently'''
        # Yes, I know this is English.  Not sure how Sublime is translating.
        if len(files) == 1:
            msg = u"Delete {0}?".format(files[0])
        else:
            msg = u"Delete {0} items?".format(len(files))
        if trash and not send2trash:
            msg = u"Cannot delete to trash.\nPermanently " + msg.replace('D', 'd', 1)
            trash = False
        return (msg, trash)
def setup_msg ( self , files , trash ) : # Yes, I know this is English.  Not sure how Sublime is translating. if len ( files ) == 1 : msg = u"Delete {0}?" . format ( files [ 0 ] ) else : msg = u"Delete {0} items?" . format ( len ( files ) ) if trash and not send2trash : msg = u"Cannot delete to trash.\nPermanently " + msg . replace ( 'D' , 'd' , 1 ) trash = False return ( msg , trash )