summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-02-17 18:12:27 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-17 23:54:20 +0100
commit99cbd0b632d330deab6f7b8891935841edd68313 (patch)
tree44ee5ba42832b93333346d2772413d903ced08bf /data/rbot
parentd3c18608f75bb5b3b206a7e34fb349cc56acbbaf (diff)
translator: fix NiftyTranslator
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/translator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb
index 51394097..39d3c1fe 100644
--- a/data/rbot/plugins/translator.rb
+++ b/data/rbot/plugins/translator.rb
@@ -116,7 +116,9 @@ class NiftyTranslator < Translator
end
def do_translate(text, from, to)
- @form.radiobuttons_with(:name => 'langpair').first.value = "#{from},#{to}".upcase
+ @radio = @form.radiobuttons_with(:name => 'langpair').first
+ @radio.value = "#{from},#{to}".upcase
+ @radio.check
@form.fields_with(:name => 'sourceText').last.value = text
@form.submit(@form.buttons_with(:name => 'translate').last).