diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2007-08-10 09:30:06 +0000 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2007-08-10 09:30:06 +0000 |
commit | 529e64cf4b05b4a92f2ce3f575be4332ed0691b5 (patch) | |
tree | f61f7cee4ffec876332dce8b6c04827edd6a7482 /data | |
parent | f5f5f209dbd6b358e0c12df0a49166bb900d35a8 (diff) |
* translator.rb: corrected naming of BabelfishTranslator#do_translate method
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/translator.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |