From 59989c3577a23ebd9c73ac8c76b294f55d7cea77 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 14 Aug 2013 20:48:03 +0200 Subject: [PATCH] AutoTrans: Fix translation to non-English languages. --- AutoTrans/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoTrans/plugin.py b/AutoTrans/plugin.py index 09cd563..59a74f6 100644 --- a/AutoTrans/plugin.py +++ b/AutoTrans/plugin.py @@ -68,8 +68,8 @@ class AutoTrans(callbacks.Plugin): for lang in set(map(operator.itemgetter(1), conf)): result = utils.web.getUrlFd('http://translate.google.com/translate_a/t' '?client=t&hl=en&sl=auto&tl=%s&multires=1' - '&otf=1&ssel=0&tsel=0&uptl=en&sc=1&text=' - '%s' % (lang, origin_text), + '&otf=1&ssel=0&tsel=0&uptl=%s&sc=1&text=' + '%s' % (lang, lang, origin_text), headers).read().decode('utf8') while ',,' in result: