Skip to content
Snippets Groups Projects
Commit 75a9d0ae authored by nkour's avatar nkour
Browse files

fix logic

parent 87684c0f
No related branches found
No related tags found
No related merge requests found
...@@ -141,10 +141,11 @@ def on_groupchat_window_delete_event(self, widget, event): ...@@ -141,10 +141,11 @@ def on_groupchat_window_delete_event(self, widget, event):
rooms_no = len(names) rooms_no = len(names)
if rooms_no >= 2: # if we are in many rooms if rooms_no >= 2: # if we are in many rooms
pritext = _('Are you sure you want to leave rooms "%s"?') % ', '.join(names) pritext = _('Are you sure you want to leave rooms "%s"?') % ', '.join(names)
sectext = _('If you close this window, you will be disconnected from this room.') sectext = _('If you close this window, you will be disconnected from these rooms.')
elif rooms_no == 1: # just in one room elif rooms_no == 1: # just in one room
pritext = _('Are you sure you want to leave room "%s"?') % names[0] pritext = _('Are you sure you want to leave room "%s"?') % names[0]
sectext = _('If you close this window, you will be disconnected from these rooms.') sectext = _('If you close this window, you will be disconnected from this room.')
if rooms_no > 0: if rooms_no > 0:
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext, dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment