Merge pull request #1249 from GLolol/patch-1

Google: mention the format of language codes
This commit is contained in:
Valentin Lorentz 2016-07-15 20:51:11 +02:00 committed by GitHub
commit 9c29652697

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)