
Processor example on the managed forms for 1С 8.2 to translate the text using Google translate.
The command is sent on the Google server like:
http://translate.google.ru/translate_a/t?client=x&text={textToTranslate}&sl={langFrom}&tl={langTo}
{textToTranslate} - input text;
{langFrom} - language of input text;
{langTo} - language in which the translation will be performed;
The answer will come in the form of JSON string. Answer example:
{
"sentences": [
{
"trans": "Professional community",
"orig": "Профессиональное сообщество",
"translit": "",
"src_translit": "Professionalʹnoe soobshchestvo"
}
],
"src": "ru",
"server_time": 54
}

You can download an example of data processor here: GoogleTranslate.zip.
Click to rate this post!
[Total: 0 Average: 0]