Skip to content

kosatyi/localize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localize

PHP Gettext translation generator from project files

Installation

System Requirements

PHP 5.4 and later.

Dependencies

Localize require the following extension in order to work properly:

Install with Composer

If you’re using Composer, you can run the following command:

composer require kosatyi/localize

Or add dependency manually in composer.json

{
  "require": {
    "kosatyi/localize":"^1.0"
  }
}

Basic Usage

require 'vendor/autoload.php';
use Kosatyi\Localize\Parser;
$localize = new Parser(array(
    'target'  => '.locales',
    'sources' => array('./src','./templates'),
    'locales' => array('en','ru')
));
$localize->initialize();

About

PHP Gettext translation generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published