From 3566b12b296d0be22e7b6cd190616a9d7e8ca4d4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 30 Sep 2004 08:26:22 +0000 Subject: [PATCH] Added a warning about languages that depend strongly on multi-byte characters. --- plugins/Babelfish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Babelfish.py b/plugins/Babelfish.py index 4240aea87..473cc9777 100644 --- a/plugins/Babelfish.py +++ b/plugins/Babelfish.py @@ -99,6 +99,8 @@ class Babelfish(callbacks.Privmsg): """ [to] Returns translated from into . + Beware that translating to or from languages that use multi-byte + characters may result in some very odd results. """ if len(args) >= 2 and args[1] == 'to': args.pop(1) @@ -112,8 +114,7 @@ class Babelfish(callbacks.Privmsg): irc.error('I do not speak any other languages.') return else: - irc.error('I only speak %s.' % utils.commaAndify(langs, - And='or')) + irc.error('I only speak %s.' % utils.commaAndify(langs)) return translation = babelfish.translate(text, fromLang, toLang) irc.reply(translation)