'Return tab menu title'

def get_tab_tip(self, filename, is_modified=None, is_readonly=None):

    if self.fullpath_sorting_enabled:
        text = filename
    else:
        text = u'%s    \u2014    %s'
    text = self.__modified_readonly_title(text, is_modified, is_readonly)
    if ((self.tempfile_path is not None) and (filename == encoding.to_unicode_from_fs(self.tempfile_path))):
        temp_file_str = to_text_string(_('Temporary    file'))
        if self.fullpath_sorting_enabled:
            return ('%s    (%s)' % (text, temp_file_str))
        else:
            return (text % (temp_file_str, self.tempfile_path))
    elif self.fullpath_sorting_enabled:
        return text
    else:
        return (text % (osp.basename(filename), osp.dirname(filename)))
