PHP Classes

PHP Website Multi Language: Translate application texts using Google Translate

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 3,655 All time: 906 This week: 524Up
Version License PHP version Categories
multi-language-sites 1BSD License3.0Localization, Web services, Code Gene...


This class can be used to translate application texts using Google Translate.

It can take a script with an array of texts in English and sends requests to the Google Translate Web site to translate each of the texts to another idiom.

The class generates a new script for the target language with an array with the texts translated to that language.

Innovation Award
PHP Programming Innovation award nominee
November 2009
Number 2

Prize: One subscription to the PDF edition of the PHP Architect magazine
To adapt an application to work with multiple idioms, it is necessary to translate the application texts to each of the supported idioms.

This class makes it easier to adapt applications to multiple idioms by using Google translate site to translate the original application text to each of the supported languages.

This way it generates what can be the first version of the internationalized application scripts.

Manuel Lemos
Picture of Sandeep Kumar
Name: Sandeep Kumar <contact>
Classes: 7 packages by
Country: India India
Age: 40
All time rank: 1508 in India India
Week rank: 286 Down17 in India India Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file en.php Conf. Data array in english language
Accessible without login Plain text file index.php Example Example File
Plain text file langconvert.php Class Language Converor Class
Plain text file readHtml.php Class Support Class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:906
This week:524Up
User Ratings User Comments (3)
 All time
Script Does not work.
13 years ago (Ailia Shahid)
14 years ago (Pali)
You use both php4 and php5 standards.
14 years ago (Ludovic Bellière)