From d44e8816401f94a33cf7346667c59d07d892210a Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 7 Jun 2005 20:24:22 +0000 Subject: [PATCH] fixing some strings to be more accurate --- src/groupchat_window.py | 8 ++++---- src/tabbed_chat_window.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index e77b82f56..7a0dce60f 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -93,8 +93,8 @@ class Groupchat_window(chat.Chat): """close window""" for room_jid in self.xmls: if time.time() - self.last_message_time[room_jid] < 2: - dialog = dialogs.Confirmation_dialog(_('You have unread messages in room "%s".'), \ - _('If you close this window, these messages will be lost.') % \ + dialog = dialogs.Confirmation_dialog(_('You just received a new message in room "%s".'), \ + _('If you close this window, this message will be lost.') % \ room_jid.split('@')[0]) if dialog.get_response() != gtk.RESPONSE_OK: return True #stop the propagation of the event @@ -540,8 +540,8 @@ class Groupchat_window(chat.Chat): def remove_tab(self, room_jid): if time.time() - self.last_message_time[room_jid] < 2: dialog = dialogs.Confirmation_dialog( - _('You have unread messages in room "%s"'), - _('If you close this tab, the messages will be lost.') % \ + _('You just received a new message in room "%s"'), + _('If you close this tab, the message will be lost.') % \ room_jid.split('@')[0]) if dialog.get_response() != gtk.RESPONSE_OK: return diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index c01446be4..897d8cbcf 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -127,7 +127,7 @@ class Tabbed_chat_window(chat.Chat): for jid in self.users: if time.time() - self.last_message_time[jid] < 2: # 2 seconds dialog = dialogs.Confirmation_dialog( - _('You have an unread message from "%s" in the last two seconds' % jid), + _('You just received a new message from "%s"' % jid), _('If you close the window, this message will be lost.')) if dialog.get_response() != gtk.RESPONSE_OK: return True #stop the propagation of the event @@ -160,7 +160,7 @@ class Tabbed_chat_window(chat.Chat): def remove_tab(self, jid): if time.time() - self.last_message_time[jid] < 2: dialog = dialogs.Confirmation_dialog( - _('You have an unread message from "%s"' % jid), + _('You just received a new message from "%s"' % jid), _('If you close this tab, the message will be lost.')) if dialog.get_response() != gtk.RESPONSE_OK: return @@ -237,7 +237,7 @@ class Tabbed_chat_window(chat.Chat): elif (event.state & gtk.gdk.SHIFT_MASK): return False if gajim.connections[self.account].connected < 2: #we are not connected - dialogs.Error_dialog(_("You're connection has been lost."), \ + dialogs.Error_dialog(_("A connection is not available"), _("Your message can't be sent until you reconnect.")).get_response() return True if message != '' or message != '\n':