Download the PHP package yiisoft/i18n-message-gettext without Composer
On this page you can find all versions of the php package yiisoft/i18n-message-gettext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/i18n-message-gettext
More information about yiisoft/i18n-message-gettext
Files in yiisoft/i18n-message-gettext
Package i18n-message-gettext
Short Description Yii Translator gettext Message Storage
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package i18n-message-gettext
Yii Translator gettext Message Storage
The package provides message storage backend based on gettext file format to be used
with yiisoft/translator
package.
Requirements
- PHP 8.0 or higher.
gettext
PHP extension.
Installation
The package could be installed with Composer:
Attention
When using gettext, locale
depends on your OS requirement:
- for Windows
'locale' => 'en-US.UTF-8'
- for Linux
'locale' => 'en_US.UTF-8'
General usage
The package is meant to be used with yiisoft/translator
:
The examples below are about using it separately.
Create of instance of MessageSource
Read message without yiisoft/translator
package
You can create your translations in .mo format with use third-party software (for example Poedit)
Recommended structure to your gettext storage:
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Translator gettext Message Storage is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.