diff --git a/src/controller/mainController.py b/src/controller/mainController.py index da399d16..b6e0d7a2 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -710,6 +710,7 @@ class Controller(object): buff = self.view.search(buffer.name, buffer.account) answer = buffer.remove_buffer() if answer == False: return + self.right() self.view.delete_buffer(buff) buffer.session.sound.play("delete_timeline.ogg") self.buffers.remove(buffer) @@ -1012,6 +1013,7 @@ class Controller(object): play_sound = "tweet_timeline.ogg" if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"]: self.notify(buffer.session, play_sound=play_sound) + output.speak(_(u"One tweet from %s") % (data["user"]["name"])) buffer.add_new_item(data) def start_buffers(self, session): diff --git a/src/controller/messages.py b/src/controller/messages.py index 39925be5..8d1b6b8e 100644 --- a/src/controller/messages.py +++ b/src/controller/messages.py @@ -27,7 +27,7 @@ class basicTweet(object): def translate(self, event=None): dlg = translator.gui.translateDialog() if dlg.get_response() == widgetUtils.OK: - text_to_translate = self.message.get_text() + text_to_translate = self.message.get_text().encode("utf-8") source = [x[0] for x in translator.translator.available_languages()][dlg.get("source_lang")] dest = [x[0] for x in translator.translator.available_languages()][dlg.get("dest_lang")] t = translator.translator.Translator()