From 2e26d5ee288753e1b2ac75b4512ae750ecab6da7 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 24 Aug 2005 12:47:09 +0000 Subject: [PATCH] removes some fixmes, mark some strings for transatlion --- src/filetransfers_window.py | 6 ++---- src/roster_window.py | 2 +- src/systraywin32.py | 10 +++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index fead44e3f..8383db2c2 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -159,10 +159,8 @@ class FileTransfersWindow: file_props['tt_account'], jid).name recipient = gtkgui_helpers.escape_for_pango_markup(receiver_name) else: - if float(gajim.version) > 0.8: - recipient = 'You' # FIXME _(gettext this) - else: - recipient = file_props['tt_account'] + #You is a reply of who received a file + recipient = ('You') sectext += recipient if file_props['type'] == 'r': (path, file) = os.path.split(file_props['file-name']) diff --git a/src/roster_window.py b/src/roster_window.py index fd9d1286c..4d5a2de59 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -957,7 +957,7 @@ class RosterWindow: model = self.tree.get_model() account = model[iter][3] - #FIXME: made this menu insensitive if we're offline + #FIXME: make most menuitems of this menu insensitive if account is offline # we have to create our own set of icons for the menu # using self.jabber_status_images is poopoo diff --git a/src/systraywin32.py b/src/systraywin32.py index 94d0296fc..c808a0ffc 100644 --- a/src/systraywin32.py +++ b/src/systraywin32.py @@ -286,14 +286,14 @@ class SystrayWin32(systray.Systray): nb += self.plugin.windows[acct][kind][jid].nb_unread[jid] #FIXME: prepare me for transltaion (ngeetext() and all) for 0.9 - if nb > 1: - text = 'Gajim - %s unread messages' % nb - elif nb == 1: - text = 'Gajim - 1 unread message' + if nb > 0: + text = i18n.ngettext( + 'Gajim - one unread message', + 'Gajim - %d unread messages', + nb, None, nb) else: text = 'Gajim' self.systray_winapi.notify_icon.set_tooltip(text) - def set_img(self): self.systray_winapi.remove_notify_icon()