This module provides GoogleTranslateWrapper originaly developed by Sameer Borate as Kohana module.
To use Kohana Google Translation API, download and extract the latest stable release of Kohana Google Translation API from Github. Place the module into your Kohana instances modules folder. Finally enable the module within the application bootstrap within the section entitled modules.
It is highly recomeneded to create config file with your Google API creditials. Sample config file is in <KohanaGoogleTranslationAPI>/config/gtapi.php.
To test if your Kohana Google Translation API works properly try this small test in your controller:
GTApi::factory()->selfTest();
The following is a quick example of how to use Kohana Google Translation API.
$sampleText = "Bonjour de cette partie du monde";
/* translate(string, to_language, from_language) */
echo GTApi::factory()->translate($sampleText , "pl", "fr");