fix strings/comments
This commit is contained in:
parent
abdf76e7b7
commit
3cd7d46e68
|
@ -47,7 +47,7 @@ class OptionsParser:
|
|||
fd = open(self.__filename)
|
||||
except:
|
||||
if os.path.exists(self.__filename):
|
||||
#it is file about file FIXME: bad comment
|
||||
#we talk about a file
|
||||
print _('error: cannot open %s for reading') % self.__filename
|
||||
return
|
||||
|
||||
|
|
|
@ -122,8 +122,8 @@ class GroupchatWindow(chat.Chat):
|
|||
for room_jid in self.xmls:
|
||||
if time.time() - gajim.last_message_time[self.account][room_jid] < 2:
|
||||
dialog = dialogs.ConfirmationDialog(
|
||||
_('You just received a new message in room "%s"') %room_jid.split('@')[0],
|
||||
_('If you close this window, this message will be lost.')
|
||||
_('You just received a new message in room "%s"') % room_jid.split('@')[0],
|
||||
_('If you close this window and you have history disabled, this message will be lost.')
|
||||
)
|
||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||
dialog.destroy()
|
||||
|
@ -967,7 +967,7 @@ class GroupchatWindow(chat.Chat):
|
|||
name = gajim.get_nick_from_jid(room_jid)
|
||||
dialog = dialogs.ConfirmationDialog(
|
||||
_('You just received a new message in room "%s"') % name,
|
||||
_('If you close this tab, the message will be lost.'))
|
||||
_('If you close this tab and you have history disabled, the message will be lost.'))
|
||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||
return
|
||||
|
||||
|
|
|
@ -272,7 +272,7 @@ timestamp, contact):
|
|||
dialog = dialogs.ConfirmationDialog(
|
||||
#%s is being replaced in the code with JID
|
||||
_('You just received a new message from "%s"' % jid),
|
||||
_('If you close the window, this message will be lost.'))
|
||||
_('If you close this tab and you have history disabled, this message will be lost.'))
|
||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||
return True #stop the propagation of the event
|
||||
|
||||
|
@ -340,7 +340,7 @@ timestamp, contact):
|
|||
if time.time() - gajim.last_message_time[self.account][jid] < 2:
|
||||
dialog = dialogs.ConfirmationDialog(
|
||||
_('You just received a new message from "%s"' % jid),
|
||||
_('If you close this tab, the message will be lost.'))
|
||||
_('If you close this tab and you have history disabled, the message will be lost.'))
|
||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue