diff --git a/src/gajim.py b/src/gajim.py index 8ab53acb0..6ff357032 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -172,8 +172,11 @@ class Interface: def handle_event_ask_new_nick(self, unused, data): #('ASK_NEW_NICK', account, (room_jid, title_text, prompt_text)) - pass - # FIXME: find a way to call show_change_nick_input_dialog in GC.py + room_jid = data[0] + title = data[1] + prompt = data[2] + self.plugin.windows[account]['gc'][room_jid].show_change_nick_input_dialog( + title, prompt, room_jid = room_jid) def handle_event_http_auth(self, account, data): #('HTTP_AUTH', account, (method, url, iq_obj)) @@ -855,10 +858,10 @@ class Interface: self.windows[account]['xml_console'].print_stanza(stanza, 'outgoing') def handle_event_vcard_published(self, account, array): - dialogs.InformationDialog(_('vCard publication succeeded'), _('Your vCard has been published successfuly.')) + dialogs.InformationDialog(_('vCard publication succeeded'), _('Your personal information has been published successfully.')) def handle_event_vcard_not_published(self, account, array): - dialogs.InformationDialog(_('vCard publication failed'), _('There was an error while publishing your vCard, try again later.')) + dialogs.InformationDialog(_('vCard publication failed'), _('There was an error while publishing your personal information, try again later.')) def read_sleepy(self): '''Check idle status and change that status if needed''' diff --git a/src/groupchat_window.py b/src/groupchat_window.py index db2bcefa9..9e94ee965 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -458,8 +458,8 @@ class GroupchatWindow(chat.Chat): prompt = _('Please specify the new nickname you want to use:') self.show_change_nick_input_dialog(title, prompt, nick, room_jid) - def show_change_nick_input_dialog(self, title, prompt, proposed_nick, - room_jid): + def show_change_nick_input_dialog(self, title, prompt, proposed_nick = None, + room_jid = None): '''asks user for new nick and on ok it sets it on room''' instance = dialogs.InputDialog(title, prompt, proposed_nick) response = instance.get_response()