Перевод текста через 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")); - тут указываем направление перевода.

5 Comments »

The URI to TrackBack this entry is: http://intrex.blogsome.com/2008/11/04/p80/trackback/

  1. Переводчик хуевый из Гугла, хоть и шустрый))

    Comment by Tex — November 5, 2008 @ 2:33 pm

  2. не знаю) особо вчитываться не приходилось :)

    Comment by Administrator — November 5, 2008 @ 11:15 pm

  3. Кто пробовал? У меня нихера не работает

    Comment by Сео Фуэль — February 20, 2009 @ 2:49 pm

  4. скрипт очень даже рабочий ;)

    Comment by int21hi — March 18, 2009 @ 3:34 pm

  5. 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

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.