From 94dd59fd7dca3cf506c3dd9febdfa877e4208459 Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Fri, 22 Jan 2010 11:13:15 +0200 Subject: translator: decode html entities on google_translate --- data/rbot/plugins/translator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index 8617c321..ca0ecc9a 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -203,7 +203,8 @@ class GoogleTranslator < Translator if response["responseStatus"] != 200 raise Translator::NoTranslationError, response["responseDetails"] else - response["responseData"]["translatedText"] + translation = response["responseData"]["translatedText"] + return Utils.decode_html_entities(translation) end end end -- cgit v1.2.3