make interrupt warning a plural form

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2181 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-01-20 21:44:10 +00:00
parent 3ee814aaa2
commit 10e8fd9fe3

View file

@ -131,9 +131,12 @@ class Consumer (object):
Abort checking and send of-of-output message to logger.
"""
while not self.no_more_threads():
linkcheck.log.warn(linkcheck.LOG_CHECK,
_("keyboard interrupt; waiting for %d active threads to finish"),
self.active_threads())
num = self.active_threads()
msg = \
_n("keyboard interrupt; waiting for %d active thread to finish",
"keyboard interrupt; waiting for %d active threads to finish",
num)
linkcheck.log.warn(linkcheck.LOG_CHECK, msg, num)
self.lock.acquire()
try:
self.threader.finish()