<?php
require_once "../apiYandex.php";
$source=$_POST['source'];
$dest=$_POST['dest'];
$text=$_POST['text'];
$yandex=\yandex\apiYandex::Factory();
$translatedText=null;
$msg=null;
$result=$yandex->plainTranslate($text,$source,$dest,$translatedText,$msg);
require_once "translated.html";
|