Download the PHP package jeroen-de-dauw/i18n without Composer
On this page you can find all versions of the php package jeroen-de-dauw/i18n. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeroen-de-dauw/i18n
More information about jeroen-de-dauw/i18n
Files in jeroen-de-dauw/i18n
Package i18n
Short Description Simple internationalization interface
License GPL-2.0+
Homepage https://github.com/JeroenDeDauw/i18n
Informations about the package i18n
i18n
Library that provides a simple i18n message interface that wraps some of the MediaWiki i18n functionality. The aim of this library is to collect the code needed by any extension to MediaWiki that wants to use the MediaWiki i18n system though at the same time not bind to the MediaWiki framework.
MediaWiki 1.20 or later is required.
On Packagist:
Installation
The recommended way to use this library is via Composer.
Composer
To add this package as a local, per-project dependency to your project, simply add a
dependency on jeroen-de-dauw/i18n
to your project's composer.json
file.
Here is a minimal example of a composer.json
file that just defines a dependency on
version 1.0 of this package:
{
"require": {
"jeroen-de-dauw/i18n": "1.0.*"
}
}
Manual
Get the code of this package, either via git, or some other means. Also get all dependencies. You can find a list of the dependencies in the "require" section of the composer.json file. Then take care of autoloading the classes defined in the src directory.
Authors
i18n has been written by [Jeroen De Dauw] (https://github.com/JeroenDeDauw), partially as Wikimedia Germany employee for the Wikidata project.
Release notes
0.1 (2013-12-07)
Initial release with these features:
- MessageBuilder interface
- MediaWiki specific implementation
- MediaWiki\MessageTextBuilder implementation of MessageBuilder
- MediaWiki\MessageObjectBuilder to construct Message objects
- MediaWiki\MessageBuilderFactory for construction of the message builders
- MediaWiki\LanguageTypes enum with the available language types