languara/fuelphp

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

v1.1.2 2016-01-17 20:40 UTC

This package is not auto-updated.

Last update: 2024-05-08 11:54:18 UTC


README

Install

Add languara plugin information to your composer.json file:


php composer.phar require languara/fuelphp

or


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

Use composer to install this package.


$ composer update

Register the pakcage

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


'always_load'  => array(
    'packages'  => array(
      // .....
      'languara'
    )
)

Configure the Package

Optionally if you want to use the GUI pull and push from the GUI on http://languara.com add these 2 routes to your fuel/app/config/routes.php:

'languara/push' => function(){
	return (new \Languara\Wrapper\LanguaraWrapper())->push();
},
'languara/pull' => function(){
	return (new \Languara\Wrapper\LanguaraWrapper())->pull();
},

Usage

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


$ php oil r languara

Or you can check the commands and their usage here:


$ php oil r 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 oil r languara:pull

to download your content from Languara to your app.


$ php oil r languara:push

to upload your content from your app to Languara.


$ php oil r languara:connect

to connect your plugin with a project on languara.com


$ php oil r languara:register

to register a new user on languara.com