fix logic

This commit is contained in:
Nikos Kouremenos 2005-09-03 16:38:19 +00:00
parent 87684c0f77
commit 75a9d0ae2c
1 changed files with 3 additions and 2 deletions

View File

@ -141,10 +141,11 @@ class GroupchatWindow(chat.Chat):
rooms_no = len(names)
if rooms_no >= 2: # if we are in many rooms
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
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:
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,