Translation using the tools of Google translate

Publications: Translation using the tools of Google translate
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
}

Publications: Translation using the tools of Google translate

You can download an example of data processor here: GoogleTranslate.zip.

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *