2017 © Pedro Peláez
 

symfony-bundle exercise-google-translate-bundle

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

image

weasty/exercise-google-translate-bundle

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

  • Monday, February 15, 2016
  • by ja1cap
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

GoogleTranslateBundle Build Statusknpbundles.com

About Bundle

This bundle include service for translate with Google Translate and command which translate messages in your Bundles, (*1)

Install

A) Add GoogleTranslateBundle to your composer.json

{
    "require": {
        "exercise/google-translate-bundle": "*"
    }
}

B) Enable the bundle

Enable the bundle in the your kernel:, (*2)

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Exercise\GoogleTranslateBundle\ExerciseGoogleTranslateBundle(),
    );
}

C) Configuration

Enter your private api key in configuration, (*3)

# app/config/config.yml
exercise_google_translate:
    api_key: your_api_key

Usage

You can it use as a service, (*4)

// Acme/DemoBundle/Controller/WelcomeController.php

public function indexAction() {

    ...

    $translator = $this->get('exercise_google_translate.translator');
    $translatedString = $translator->translate('Hello World!', 'en', 'fr');

    // Bonjour tout le monde!
    return new Response($translatedString);
}

or you can use console command to translate messages, (*5)

app/console gtranslate:translate en fr AcmeDemoBundle

Bug tracking

GoogleTranslateBundle uses GitHub issues. If you have found bug, please create an issue., (*6)

License

This bundle is under the MIT license. See the complete license in LICENSE.md, (*7)

License, (*8)

The Versions

15/02 2016

dev-master

9999999-dev https://github.com/Exercise/GoogleTranslateBundle

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony google translation translate google-translate

15/02 2016

v1.0

1.0.0.0 https://github.com/Exercise/GoogleTranslateBundle

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony google translation translate google-translate