diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-17 18:12:27 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-17 23:54:20 +0100 |
commit | 99cbd0b632d330deab6f7b8891935841edd68313 (patch) | |
tree | 44ee5ba42832b93333346d2772413d903ced08bf /data/rbot/plugins | |
parent | d3c18608f75bb5b3b206a7e34fb349cc56acbbaf (diff) |
translator: fix NiftyTranslator
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/translator.rb | 4 |
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). |