library gettext
Gettext translator for intl and some other useful gettext stuff
phellow/gettext
Gettext translator for intl and some other useful gettext stuff
- Wednesday, December 31, 2014
- by christianblos
- Repository
- 1 Watchers
- 0 Stars
- 21 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Install via Composer
Add the following dependency to your project's composer.json file:, (*1)
{
"require": {
"phellow/gettext": "1.*"
}
}
Usage
To translate texts via gettext, you have to set the translator first:, (*2)
$translator = new \Phellow\Gettext\GettextTranslator('path/to/locales', 'gettextDomain');
$intl = new \Phellow\Intl\IntlService('en_US');
$intl->setTranslator($translator);
$text = $intl->_('translate this');
$text = $intl->_n('one', 'more', 2);
License
The MIT license., (*3)
dev-master
9999999-dev
Gettext translator for intl and some other useful gettext stuff
Sources
Download
MIT
The Requires
by
Christian Blos
1.0.1
1.0.1.0
Gettext translator for intl and some other useful gettext stuff
Sources
Download
MIT
The Requires
by
Christian Blos
1.0.0
1.0.0.0
Gettext translator for intl and some other useful gettext stuff
Sources
Download
MIT
The Requires
by
Christian Blos