Перевод текста через google translate
November 4, 2008Скрипт для перевода текста через google translate.
Сам код можно посмотреть здесь.
Перевод нужно делать удаленно, поэтому используется следующий код:
$text=‘Тут текст который переводим’;
$text_url=‘сайт.ру/skript.php?text=’.urlencode(strip_tags($text));
$text=file_get_contents ($text_url);
В переменной $text, получаем переведенный текст.
$g->setOpts(array("text" => $text, "language_pair" => "en|uk")); - тут указываем направление перевода.



Переводчик хуевый из Гугла, хоть и шустрый))
Comment by Tex — November 5, 2008 @ 2:33 pm
не знаю) особо вчитываться не приходилось
Comment by Administrator — November 5, 2008 @ 11:15 pm
Кто пробовал? У меня нихера не работает
Comment by Сео Фуэль — February 20, 2009 @ 2:49 pm
скрипт очень даже рабочий
Comment by int21hi — March 18, 2009 @ 3:34 pm
Sorry. Nothing is more conducive to peace of mind than not having any opinions at all.
I am from Czech and also am speaking English, give please true I wrote the following sentence:
THX
, Parlan.
Comment by Parlan — April 23, 2009 @ 12:26 am