'@todo: docstring'

def rangeText(self, key, pBand):

    if (key == (-1)):
        return ''
    elif (key == 0):
        return (current.T('At    or    below    %s') % pBand[1])
    elif (key == (len(pBand) - 1)):
        return (current.T('Above    %s') % pBand[(len(pBand) - 1)])
    else:
        return ('%s    -    %s' % (pBand[key], pBand[(key + 1)]))
