News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate's Blog:
Google Translation PHP wrapper v1.7
June 24, 2010 @ 10:17:18

Sameer Borate has posted an update to his Google Translation wrapper library that increases the translation limit to above the 5000 character max Google enforces.

If the text length is more than 5000 characters it is split into discrete chunks and translated individually, returning the complete translated text at the end. Now you can easily translate whole pages of content.

He includes a code snippet showing how it can be used to translate a whole page easily via a file_get_contents call to pull in the requested page and translate it from French to English.

0 comments voice your opinion now!
google translate library wrapper

blog comments powered by Disqus

Similar Posts Capture Screenshots in PHP with GrabzIt

Liip Blog: 2-Step Verification with Google Authenticator and PHP

Jani Hartikainen's Blog: The problems faced by a common model interface in frameworks

Ivo Jansch's Blog: Validating OCL constraints in PHP objects PHPAdsNew and Google Adsense Integration

Community Events

Don't see your event here?
Let us know!

podcast configure list opinion laravel interview testing threedevsandamaybe framework series developer community unittest install introduction release symfony2 code refactor language

All content copyright, 2014 :: - Powered by the Solar PHP Framework