diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-17 19:26:49 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-17 23:54:38 +0100 |
commit | 15a64e8a1f63ba01e3e873579a8496d2aa1d735a (patch) | |
tree | f3026fc6e44318c262418ebffd8c1e77f3a94133 | |
parent | 99cbd0b632d330deab6f7b8891935841edd68313 (diff) |
translator: fix BabelfishTranslator
-rw-r--r-- | data/rbot/plugins/translator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index 39d3c1fe..ad9c431c 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -230,13 +230,13 @@ class BabelfishTranslator < Translator end def do_translate(text, from, to) - if @form.fields_with(:name => 'trtext').first.empty? + if @form.fields_with(:name => 'trtext').empty? @form.add_field!('trtext', text) else @form.fields_with(:name => 'trtext').first.value = text end @lang_list.value = "#{from}_#{to}" - @form.submit.parser.search("td.s/div[@style]").inner_html + @form.submit.parser.search("div[@id='result']/div[@style]").inner_html end end |