ozean12/webtranslateit

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.2) of this package.

Symfony integration with WebTranslateIt

0.2 2019-11-02 22:12 UTC

This package is not auto-updated.

Last update: 2023-04-29 12:09:55 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads

Ozean12WebTranslateItBundle

A Symfony 2 / Symfony 3 bundle which allows you to integrate the WebTranslateIt translation service.

Installation

1. Require the bundle:
composer require ozean12/webtranslateit
2. Set it up:
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new EightPoints\Bundle\GuzzleBundle\GuzzleBundle(), // if not already enabled
        new JMS\SerializerBundle\JMSSerializerBundle(), // if not already enabled
        new Ozean12\WebTranslateItBundle\Ozean12WebTranslateItBundle(),
    ];
    
    // ...
}
# app/config/config.yml

ozean12_web_translate_it:
  # your project read key
  read_key: "%webtranslateit_read_key%"
  
  # path to where download your translations,
  # ex: '%kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations'
  pull_path: "%webtranslateit_pull_path%" 

Usage

To update the translations, run:

  • For Symfony < 2.8: app/console ozean12:webtranslateit:pull
  • For Symfony 2.8 / 3: bin/console ozean12:webtranslateit:pull
  • Or a shorthand notation: bin/console o:w:p

NB: To check the command progress, add -v modifier (app/console o:w:p -v or bin/console o:w:p -v)

Credits

Ozean12