2017 © Pedro Peláez
 

symfony-bundle bing-translation

image

melk/bing-translation

  • Wednesday, June 3, 2015
  • by dmelk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,408 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

BingTranslationBundle

Bing translation service for Symfony2, (*1)

Installation

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(),

Configuration

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

Usage

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

The Versions

03/06 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Michael Potienko

03/06 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Michael Potienko