From 529e64cf4b05b4a92f2ce3f575be4332ed0691b5 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Fri, 10 Aug 2007 09:30:06 +0000 Subject: * translator.rb: corrected naming of BabelfishTranslator#do_translate method --- data/rbot/plugins/translator.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index ea1b8988..958a2d23 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -199,8 +199,7 @@ class BabelfishTranslator < Translator super(Translator::Direction.pairs(language_pairs), cache) end - def translate(text, from, to) - super + def do_translate(text, from, to) if @form.fields.name('trtext').empty? @form.add_field!('trtext', text) else -- cgit v1.2.3