changed emails to email when only 1 unread

This commit is contained in:
Philip Dexter 2012-10-10 23:58:06 -04:00
parent 3cf43687eb
commit 672caadc77

View File

@ -36,7 +36,7 @@ class MailChecker(object):
if not unread:
return None
return {'full_text' : '%d new emails' % unread,
return {'full_text' : '%d new email%s' % (unread, ('s' if unread > 1 else '')),
'name' : 'newmail',
'urgent' : 'true',
'color' : self.settings['color']}
@ -102,4 +102,4 @@ class MailChecker(object):
self.unread_cache = unread
self.last_checked = datetime.now()
return self.unread_cache
return self.unread_cache