fix 2 problematic ngettext() strings
This commit is contained in:
parent
49b4eff2cc
commit
96eab62d65
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue