Spiga

‘ Google Translate Tool ’ category archive

Google Translate Tool Class v0.9

July 10, 08 by Gabi Solomon

As almost all of my classes i have developed this class for a project requirement, and i decided to make it public on phpclasses.com that is available for download at this link.

This is quite a simple class can translate text, and webpages using Google translate services.

The class usses curl to make a tranlation request to the Google translate Web page and asking for the translation of the given text or URL from the selected from and to languages. The result is parsed to obtain the translation and returned by the class.

The translation class supports all the languages currently available at google including:
English, German, Spanish, French, Italian, Portuguese, Arabic, Chinese and Russian.