fixing some strings to be more accurate
This commit is contained in:
parent
ef147a16bc
commit
d44e881640
|
@ -93,8 +93,8 @@ class Groupchat_window(chat.Chat):
|
||||||
"""close window"""
|
"""close window"""
|
||||||
for room_jid in self.xmls:
|
for room_jid in self.xmls:
|
||||||
if time.time() - self.last_message_time[room_jid] < 2:
|
if time.time() - self.last_message_time[room_jid] < 2:
|
||||||
dialog = dialogs.Confirmation_dialog(_('You have unread messages in room "%s".'), \
|
dialog = dialogs.Confirmation_dialog(_('You just received a new message in room "%s".'), \
|
||||||
_('If you close this window, these messages will be lost.') % \
|
_('If you close this window, this message will be lost.') % \
|
||||||
room_jid.split('@')[0])
|
room_jid.split('@')[0])
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
return True #stop the propagation of the event
|
return True #stop the propagation of the event
|
||||||
|
@ -540,8 +540,8 @@ class Groupchat_window(chat.Chat):
|
||||||
def remove_tab(self, room_jid):
|
def remove_tab(self, room_jid):
|
||||||
if time.time() - self.last_message_time[room_jid] < 2:
|
if time.time() - self.last_message_time[room_jid] < 2:
|
||||||
dialog = dialogs.Confirmation_dialog(
|
dialog = dialogs.Confirmation_dialog(
|
||||||
_('You have unread messages in room "%s"'),
|
_('You just received a new message in room "%s"'),
|
||||||
_('If you close this tab, the messages will be lost.') % \
|
_('If you close this tab, the message will be lost.') % \
|
||||||
room_jid.split('@')[0])
|
room_jid.split('@')[0])
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
return
|
return
|
||||||
|
|
|
@ -127,7 +127,7 @@ class Tabbed_chat_window(chat.Chat):
|
||||||
for jid in self.users:
|
for jid in self.users:
|
||||||
if time.time() - self.last_message_time[jid] < 2: # 2 seconds
|
if time.time() - self.last_message_time[jid] < 2: # 2 seconds
|
||||||
dialog = dialogs.Confirmation_dialog(
|
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 you close the window, this message will be lost.'))
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
return True #stop the propagation of the event
|
return True #stop the propagation of the event
|
||||||
|
@ -160,7 +160,7 @@ class Tabbed_chat_window(chat.Chat):
|
||||||
def remove_tab(self, jid):
|
def remove_tab(self, jid):
|
||||||
if time.time() - self.last_message_time[jid] < 2:
|
if time.time() - self.last_message_time[jid] < 2:
|
||||||
dialog = dialogs.Confirmation_dialog(
|
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 you close this tab, the message will be lost.'))
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
return
|
return
|
||||||
|
@ -237,7 +237,7 @@ class Tabbed_chat_window(chat.Chat):
|
||||||
elif (event.state & gtk.gdk.SHIFT_MASK):
|
elif (event.state & gtk.gdk.SHIFT_MASK):
|
||||||
return False
|
return False
|
||||||
if gajim.connections[self.account].connected < 2: #we are not connected
|
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()
|
_("Your message can't be sent until you reconnect.")).get_response()
|
||||||
return True
|
return True
|
||||||
if message != '' or message != '\n':
|
if message != '' or message != '\n':
|
||||||
|
|
Loading…
Reference in New Issue