languara/symfony3

Languara localization plugin for Symfony 2.x. Easily upload, translate, and synchronize your language content using Languara's Cloud Based Translation Management Platform.

1.1.1 2016-03-22 01:14 UTC

This package is not auto-updated.

Last update: 2024-04-19 17:11:06 UTC


README

Install

Add languara plugin information to your composer.json file:


"require": {
  "languara/symfony3": "1.0.*@dev"
}

Use composer to install this package.


$ composer update

Register the package

Add the package to the autoload array in app/AppKernel.php:


public function registerBundles()
{
  $bundles = array(
    // .....
    new Languara\SymfonyBundle\LanguaraSymfonyBundle(),
  )
}

Configure the Package

.....

Usage

Execute this command to see a list of available commands in your commandline:


$ php bin/console

Or you can check the commands and their usage here:


$ php bin/console languara:translate [options]

to translate the texts you already have in your lang directory. You can also select the type of translation you want to perform, Machine or Human. It's set to machine by default.


$ php bin/console languara:pull

to download your content from Languara to your app.


$ php bin/console languara:push

to upload your content from your app to Languara.


$ php bin/console languara:register

to register a new user on languara.com