Module ui.translator

This module translates text using Google Translate.

http://translate.google.com/translate_a/t?client=z&ie=UTF-8&oe=UTF-8&hl=en&tl=en&text=hello

Functions

Translator:loadPage (target_lang, source_lang, text) Returns decoded JSON table from translate server.
Translator:detect (text) Tries to automatically detect language of text.


Functions

Translator:loadPage (target_lang, source_lang, text)
Returns decoded JSON table from translate server.

Parameters:

Returns:

    string result, or nil
Translator:detect (text)
Tries to automatically detect language of text.

Parameters:

Returns:

    string lang ("en", "fr", )
generated by LDoc 1.4.6 Last updated 2017-08-17 09:26:49