From aa6e663768b59f3d891c214af5a4a77e70a0bd3f Mon Sep 17 00:00:00 2001 From: James Vega Date: Sat, 7 Feb 2004 04:24:37 +0000 Subject: [PATCH] Added Babelfish.languages (which we should've had long ago) --- plugins/Babelfish.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/Babelfish.py b/plugins/Babelfish.py index ff36e0c65..9b5f9b953 100644 --- a/plugins/Babelfish.py +++ b/plugins/Babelfish.py @@ -58,6 +58,14 @@ class Babelfish(callbacks.Privmsg): _abbrevs['zh'] = 'chinese' for language in babelfish.available_languages: _abbrevs[language] = language + + def languages(self, irc, msg, args): + """takes no arguments + + Returns the languages that Babelfish can translate to/from. + """ + irc.reply(utils.commaAndify(babelfish.available_languages)) + def translate(self, irc, msg, args): """ [to]