NewsFeaturesDownloadsDevelopmentSupportAbout Us

Locale


Classes

class  Locale
class  LocaleFinder
class  Locales
class  PluginLocale

Detailed Description

The Locale module is used for localization purposes. Its main class is the Locale class that is capable of loading very simple php files containing a big array of string identifiers and their translations. The main method of the class is the Locale.tr() that given a string identifier, will return the translated version.

Locale files can also specify default encodings and very basic date and time formats (this will be improved in next version) At the moment it is also possible to use right-to-left languages even though there is none available yet.

The Locales class is the preferred way to load translations from disk since it has caching mechanisms so that we don't have to load the data everytime from disk.

Please see http://wiki.lifetype.net/index.php/Translating_LifeType for more information regading how to work with locale files in LifeType.

See also:
Locale

Locales