Changeset 85 for gajim/branches/chat2muc/src/dialogs.py
- Timestamp:
- 07/16/07 22:06:21 (3 years ago)
- Files:
-
- 1 modified
-
gajim/branches/chat2muc/src/dialogs.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gajim/branches/chat2muc/src/dialogs.py
r84 r85 2563 2563 class InvitationReceivedDialog: 2564 2564 def __init__(self, account, room_jid, contact_jid, password = None, 2565 comment = None ):2565 comment = None, is_continued = False): 2566 2566 2567 2567 self.room_jid = room_jid 2568 2568 self.account = account 2569 self.is_continued = is_continued 2569 2570 xml = gtkgui_helpers.get_glade('invitation_received_dialog.glade') 2570 2571 self.dialog = xml.get_widget('invitation_received_dialog') 2571 2572 2572 2573 #Don't translate $Contact 2573 pritext = _('$Contact has invited you to group chat %(room_jid)s')\ 2574 % {'room_jid': room_jid} 2574 if is_continued: 2575 pritext = _('$Contact has invited you to join a discussion') 2576 else: 2577 pritext = _('$Contact has invited you to group chat %(room_jid)s')\ 2578 % {'room_jid': room_jid} 2575 2579 contact = gajim.contacts.get_first_contact_from_jid(account, contact_jid) 2576 2580 if contact and contact.name: … … 2600 2604 self.dialog.destroy() 2601 2605 try: 2602 JoinGroupchatWindow(self.account, self.room_jid) 2606 if self.is_continued: 2607 gajim.interface.roster.join_gc_room(self.account, self.room_jid, 2608 gajim.nicks[self.account], None, is_continued=True) 2609 else: 2610 JoinGroupchatWindow(self.account, self.room_jid) 2603 2611 except GajimGeneralException: 2604 2612 pass
