

def displayed_items(self):
    from trac.util.translation import _
    (start, stop) = self.span
    total = self.num_items
    if ((start + 1) == stop):
        return _('%(last)d of %(total)d', last=stop, total=total)
    else:
        return _('%(start)d - %(stop)d of %(total)d', start=(self.span[0] + 1), stop=self.span[1], total=total)

dataset/ETHPy150Open edgewall/trac/trac/util/presentation.py Paginator.displayed_items/original