From 96eab62d65344e042e5212cbb57606efdd93646d Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 3 Sep 2005 12:58:29 +0000
Subject: [PATCH] fix 2 problematic ngettext() strings

---
 src/systraywin32.py | 5 ++---
 src/tooltips.py     | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/systraywin32.py b/src/systraywin32.py
index 146c4bd59c..be5271b3d3 100644
--- a/src/systraywin32.py
+++ b/src/systraywin32.py
@@ -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)
diff --git a/src/tooltips.py b/src/tooltips.py
index 70856858ef..1990eecdf1 100644
--- a/src/tooltips.py
+++ b/src/tooltips.py
@@ -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
-- 
GitLab