diff options
-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). |