PHP Gettext translation generator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

Localize Logo
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();