diff options
author | Raine Virta <rane@kapsi.fi> | 2010-01-22 11:13:15 +0200 |
---|---|---|
committer | Raine Virta <rane@kapsi.fi> | 2010-04-16 22:58:24 +0300 |
commit | 94dd59fd7dca3cf506c3dd9febdfa877e4208459 (patch) | |
tree | 9af5fe9764680eb582c1a46e2d91a9ca67731587 /data | |
parent | f00ee3ba88882bddeb21850ed1bd97b5416ea280 (diff) |
translator: decode html entities on google_translate
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/translator.rb | 3 |
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 |