From 07a154ef4fee57dca2c58f289aaace9699d3831f Mon Sep 17 00:00:00 2001 From: Elad Alfassa Date: Thu, 17 Jul 2014 23:57:18 +0300 Subject: [PATCH] [translate] Fix bug with the $nickname: "foo"? form --- translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate.py b/translate.py index 43109e233a..726d912938 100644 --- a/translate.py +++ b/translate.py @@ -96,9 +96,9 @@ def tr(bot, trigger): msg = msg.decode('utf-8') if msg: msg = web.decode(msg) # msg.replace(''', "'") - msg = '"%s" (%s to %s, translate.google.com)' % (msg, input, output) + msg = '"%s" (%s to %s, translate.google.com)' % (msg, in_lang, out_lang) else: - msg = 'The %s to %s translation failed, sorry!' % (input, output) + msg = 'The %s to %s translation failed, sorry!' % (in_lang, out_lang) bot.reply(msg) else: