Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kosatyi/localize
PHP Gettext translation generator
https://github.com/kosatyi/localize
gettext gettext-started
Last synced: 12 days ago
JSON representation
PHP Gettext translation generator
- Host: GitHub
- URL: https://github.com/kosatyi/localize
- Owner: kosatyi
- License: mit
- Created: 2017-08-04T09:36:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-04T12:57:04.000Z (over 3 years ago)
- Last Synced: 2024-12-07T21:11:52.709Z (about 1 month ago)
- Topics: gettext, gettext-started
- Language: PHP
- Homepage: https://kosatyi.com/localize/
- Size: 66.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
- [`gettext`](http://php.net/manual/en/gettext.installation.php)
### Install with Composer
If you’re using [Composer](https://getcomposer.org/), you can run the following command:
```cmd
composer require kosatyi/localize
```Or add dependency manually in `composer.json`
```json
{
"require": {
"kosatyi/localize":"^1.0"
}
}
```### Basic Usage
```php
require 'vendor/autoload.php';
use Kosatyi\Localize\Parser;
$localize = new Parser(array(
'target' => '.locales',
'sources' => array('./src','./templates'),
'locales' => array('en','ru')
));
$localize->initialize();
```