From 30ba4bbe2262ea2c8b3d74a59b2217228b267f22 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 15 Jul 2016 11:48:26 -0700 Subject: [PATCH] Google: mention the format of language codes This might reduce confusion when people do things like "!google translate english to french hello", which produces no result. --- plugins/Google/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 22bc3b915..6c15b7dcb 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -290,7 +290,9 @@ class Google(callbacks.PluginRegexp): """ [to] Returns translated from into . + language>. and take language + codes (not language names), which are listed here: + https://cloud.google.com/translate/v2/translate-reference#supported_languages """ channel = msg.args[0] (text, language) = self._translate(sourceLang, targetLang, text)