Changeset 8453 for trunk

Show
Ignore:
Timestamp:
08/06/07 11:59:14 (17 months ago)
Author:
asterix
Message:

show room jid in error messages when unable to join it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r8433 r8453  
    16991699                                elif errcode == '403': # we are banned 
    17001700                                        self.dispatch('ERROR', (_('Unable to join group chat'), 
    1701                                                 _('You are banned from this group chat.'))) 
     1701                                                _('You are banned from group chat %s.') % room_jid)) 
    17021702                                elif errcode == '404': # group chat does not exist 
    17031703                                        self.dispatch('ERROR', (_('Unable to join group chat'), 
    1704                                                 _('Such group chat does not exist.'))) 
     1704                                                _('Group chat %s does not exist.') % room_jid)) 
    17051705                                elif errcode == '405': 
    17061706                                        self.dispatch('ERROR', (_('Unable to join group chat'), 
     
    17081708                                elif errcode == '406': 
    17091709                                        self.dispatch('ERROR', (_('Unable to join group chat'), 
    1710                                                 _('Your registered nickname must be used.'))) 
     1710                                                _('Your registered nickname must be used in group chat %s.') \ 
     1711                                                % room_jid)) 
    17111712                                elif errcode == '407': 
    17121713                                        self.dispatch('ERROR', (_('Unable to join group chat'), 
    1713                                                 _('You are not in the members list.'))) 
     1714                                                _('You are not in the members list in groupchat %s.') % \ 
     1715                                                room_jid)) 
    17141716                                elif errcode == '409': # nick conflict 
    17151717                                        # the jid_from in this case is FAKE JID: room_jid/nick 
     
    17191721                                        room_jid = gajim.get_room_from_fjid(who) 
    17201722                                        self.dispatch('ASK_NEW_NICK', (room_jid, _('Unable to join group chat'), 
    1721                 _('Your desired nickname is in use or registered by another occupant.\nPlease specify another nickname below:'), proposed_nickname)) 
     1723                _('Your desired nickname in group chat %s is in use or registered by another occupant.\nPlease specify another nickname below:') % room_jid, proposed_nickname)) 
    17221724                                else:   # print in the window the error 
    17231725                                        self.dispatch('ERROR_ANSWER', ('', jid_stripped,