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.
This commit is contained in:
James Lu 2016-07-15 11:48:26 -07:00 committed by GitHub
parent b16ec65cb2
commit 30ba4bbe22
1 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,9 @@ class Google(callbacks.PluginRegexp):
"""<source language> [to] <target language> <text>
Returns <text> translated from <source language> into <target
language>.
language>. <source language> and <target language> 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)