summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/translator.rb4
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