dev-master
9999999-dev
MIT
The Requires
- php >=5.4
The Development Requires
by Michael Potienko
1.0.0
1.0.0.0
MIT
The Requires
- php >=5.4
The Development Requires
by Michael Potienko
Wallogit.com
2017 © Pedro Peláez
Bing translation service for Symfony2, (*1)
Just add this line to composer:, (*2)
"melk/bing-translation" : "dev-master"
Then add bundle to your AppKernel.php file:, (*3)
new Melk\BingTranslationBundle\MelkBingTranslationBundle(),
Create MS application and add next information to your config.yml:, (*4)
#app/config/config.yml
melk_bing_translation:
client_id: your client id
client_secret: your client secret
Simple example of how to translate comments in controller:, (*5)
$bingTranslator = $this->get('melk_bing_translation.translator');
$commentLocale = $bingTranslator->detectLanguage($comment);
$translated = $bingTranslator->translate($comment, $commentLocale, $toLocale);
MIT
MIT