2017 © Pedro Peláez
 

library lang-sync

Parse templates, extracts laguages and sync them through different translations.

image

rolice/lang-sync

Parse templates, extracts laguages and sync them through different translations.

  • Monday, October 12, 2015
  • by rolice
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-LangSync

Language Extractor and Synchroniser, (*1)

This package is developed for Laravel 4.2. Larvel 5.0+ support is comming soon., (*2)

How it works?

The package will walk through the application files and will search for any Lang::get or @lang statements and will check for translation in the proper language file. A new file will be created, in case no file exists or a line will be put in the langauge file if the exact translation is missing., (*3)

All language files will be parsed with a unified translation code-style., (*4)

Installation

You can easily install the package in your Laravel project by simply executing the following command:, (*5)

composer require rolice/lang-sync, (*6)

After the installation you have to add the service provider in app config:, (*7)

'Rolice\LangSync\LangSyncServiceProvider'

for PHP 5.6+ you can add the following:, (*8)

Rolice\LangSync\LangSyncServiceProvider::class

Usage

The usage is done through artisan command. This is done through command line like:, (*9)

php artisan locale:extract, (*10)

You can easily call it programmatically from your PHP code like, in case command line is not accessible:, (*11)

Artisan::call('locale:extract')

The Versions

12/10 2015

dev-master

9999999-dev

Parse templates, extracts laguages and sync them through different translations.

  Sources   Download

MIT

The Requires

 

by Lyubomir Gardev