Skip to content
Snippets Groups Projects
Commit 96eab62d authored by nkour's avatar nkour
Browse files

fix 2 problematic ngettext() strings

parent 49b4eff2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment