Skip to content

About

Google Translation API module for Kohana.

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Kohana Google Translation API

This module provides GoogleTranslateWrapper originaly developed by Sameer Borate as Kohana module.

Using Cache

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.

Quick test

To test if your Kohana Google Translation API works properly try this small test in your controller:

GTApi::factory()->selfTest();

Quick example

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");

About

Google Translation API module for Kohana.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages