mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 12:04:07 +01:00
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:
parent
b16ec65cb2
commit
30ba4bbe22
@ -290,7 +290,9 @@ class Google(callbacks.PluginRegexp):
|
|||||||
"""<source language> [to] <target language> <text>
|
"""<source language> [to] <target language> <text>
|
||||||
|
|
||||||
Returns <text> translated from <source language> into <target
|
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]
|
channel = msg.args[0]
|
||||||
(text, language) = self._translate(sourceLang, targetLang, text)
|
(text, language) = self._translate(sourceLang, targetLang, text)
|
||||||
|
Loading…
Reference in New Issue
Block a user