PHP Translate

Php translate class

View project on GitHub

PHP translate using google translate.

This class is allowing you to translate text in any language supported by google translate. Usage:

include("prevod.class.php");
$prevedi      =   "Hello"; // Word to translate - it could be sentence, word or huge text, also can be defined as variable.
$prevod       = new Prevod("en", "sr"); // Initialize translate from english to serbian
echo $prevod->Prevod($prevedi); //This would be cyrillic  

If you are Translating serbian, you could convert cyrillic to latin by simple function integrated into the code

echo $prevod->CirLat($prevod->Prevod($prevedi));

Authors and Contributors

Github: @dragan88ar Website: http://extreme.lukicdcl.com

Support or Contact

Having trouble with code? Contact me at dragan88_ar@hotmail.com and I’ll help you sort it out.