fix 2 problematic ngettext() strings

This commit is contained in:
Nikos Kouremenos 2005-09-03 12:58:29 +00:00
parent 49b4eff2cc
commit 96eab62d65
2 changed files with 4 additions and 5 deletions

View File

@ -286,12 +286,11 @@ class SystrayWin32(systray.Systray):
if jid != 'tabbed':
nb += self.plugin.windows[acct][kind][jid].nb_unread[jid]
#FIXME: prepare me for transltaion (ngeetext() and all) for 0.9
if nb > 0:
text = i18n.ngettext(
'Gajim - one unread message',
'Gajim - %d unread message',
'Gajim - %d unread messages',
nb, None, nb)
nb, nb, nb)
else:
text = 'Gajim'
self.systray_winapi.notify_icon.set_tooltip(text)

View File

@ -209,9 +209,9 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
if unread_messages_no > 0:
text = i18n.ngettext(
'Gajim - one unread message',
'Gajim - %d unread message',
'Gajim - %d unread messages',
unread_messages_no, None, unread_messages_no)
unread_messages_no, unread_messages_no, unread_messages_no)
elif len(accounts) > 1:
text = _('Gajim')
self.current_row = 1