GoogleTranslate plugin for symfony 1.4
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
README

README

sfGoogleTranslatePlugin

symfony 1.4 Plugin that gives access to the Google Translate API:
http://code.google.com/apis/language/translate/overview.html
Version 1

requires:
http://www.symfony-project.org/plugins/sfWebBrowserPlugin 

Install:
cd plugins
git clone git@github.com:ivoba/sfGoogleTranslate.git sfGoogleTranslatePlugin

enable Plugin in ProjectConfiguration.class.php 

Demo:
//for default translation de -> en
$gT = new sfGoogleTranslate();
$t = $gT->translate('Stuhl');

//for other translation
$gT = new sfGoogleTranslate('fr','de');
$t = $gT->translate('Pantalon');

//for detection
$gT = new sfGoogleTranslate();
$t = $gT->detect('Baum');


Tests:
sf test:plugin sfGoogleTranslatePlugin

TODO:
integrate tasks like in: i18nTranslate plugin