Skip to content
gotardo edited this page Apr 21, 2012 · 11 revisions

Welcome to the i18n wiki!

i18n is just a simple class to make internationalization easier in your PHP projects.

Use

You can use the class by calling the constructor:

$i18n = new i18n($language);

The .po / .mo files must be placed at

/locale

Please, have a look at index.php file to make an idea.

Change log:

v0.4 - Adds support for plurals.

v0.3 - Adds support for multiple domains.

v0.2 (Current version)

  • Adds a workaround to avoid the Apache cache.

  • The default domain "i18n" has been changed to "default"

  • Adds support for standard l10n in english.

  • Adds support for some l10n in spanish, french and chinese.

v0.1

  • You can easily translate your texts.
Clone this wiki locally