summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2010-01-22 11:13:15 +0200
committerRaine Virta <rane@kapsi.fi>2010-04-16 22:58:24 +0300
commit94dd59fd7dca3cf506c3dd9febdfa877e4208459 (patch)
tree9af5fe9764680eb582c1a46e2d91a9ca67731587 /data/rbot
parentf00ee3ba88882bddeb21850ed1bd97b5416ea280 (diff)
translator: decode html entities on google_translate
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/translator.rb3
1 files changed, 2 insertions, 1 deletions
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