human
Complete this python program:
def format_time_string(seconds, days=0):
assistant
#Here is the Python program you requested.

    """Return a formatted and translated time string
    """
    def unit(single, n):
        if (n == 1):
            return sabnzbd.api.Ttemplate(single)
        else:
            return sabnzbd.api.Ttemplate((single + 's'))
    seconds = int_conv(seconds)
    completestr = []
    if days:
        completestr.append(('%s    %s' % (days, unit('day', days))))
    if ((seconds / 3600) >= 1):
        completestr.append(('%s    %s' % ((seconds / 3600), unit('hour', (seconds / 3600)))))
        seconds -= ((seconds / 3600) * 3600)
    if ((seconds / 60) >= 1):
        completestr.append(('%s    %s' % ((seconds / 60), unit('minute', (seconds / 60)))))
        seconds -= ((seconds / 60) * 60)
    if (seconds > 0):
        completestr.append(('%s    %s' % (seconds, unit('second', seconds))))
    elif (not completestr):
        completestr.append(('0    %s' % unit('second', 0)))
    return '    '.join(completestr)