summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/translator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/translator.rb')
-rw-r--r--data/rbot/plugins/translator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb
index 33821638..833701c3 100644
--- a/data/rbot/plugins/translator.rb
+++ b/data/rbot/plugins/translator.rb
@@ -128,6 +128,7 @@ class GoogleTranslator < Translator
def do_translate(text, from, to)
agent = Mechanize.new
+ agent.user_agent_alias = 'Linux Mozilla'
page = agent.get URL
form = page.form_with(:id => 'gt-form')
form.sl = from