I18N
From ESEwiki
The internationalization library is a small library that proposes a unique front-end and formatter to several localization systems:
- file-backed messages
- database-backed messages
- gettext-backed messages (still to do)
Contents |
Interface
The main class to be used is INTERNATIONALIZATION. The main feature is format.
Another important feature is set_factory, which sets the bundle factory to use.
See also the BUNDLE which is contains data (key-value pairs) in a given LOCALE.
Back-ends
Files
Data is simply saved in files. The FILE_BUNDLE_FACTORY allows to set paths to look into. Bundle files are the name of the bundle with locale elements and a .bundle extension. Locale elements may be either nothing, either just the language, or the language and the country simply appended to the base bundle name and separated by underscores.
Databases
Data is saved in a single table; the EDC_BUNDLE_FACTORY allows to set one or more sets of columns (reprsenting one or more tables in one or more databases).
Gettext
(to do)

