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.
Installs: 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Type:fuel-package
Requires
- php: >=5.4.0
- languara/core: ~1.0
This package is not auto-updated.
Last update: 2024-12-18 14:40:50 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