Simplify support for using "auto" to detect source language
authorYaohan Chen <yaohan.chen@gmail.com>
Mon, 30 Nov 2009 19:19:55 +0000 (14:19 -0500)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 30 Nov 2009 22:13:34 +0000 (23:13 +0100)
commit657e1d70928f2878d4c256825632265fe59b2269
tree1a49348add179f386c0c4322b92f9b903ec8f0bc
parent1ce45e64266ea9efc1cfce4160994de24bbf7a2c
Simplify support for using "auto" to detect source language

When "auto" is used as source language, Google Translate detects the
source language. However there is no need to hardcode Google Translate
as the only translator supporting "auto". If another translator supports
language detection, we can add "auto" to its supported source languages.
If no translator in default_list supports translating from "auto", the
existing code already responds with a message saying so.
data/rbot/plugins/translator.rb