A singleton class to provide simple, generic mechanism for dealing with languages encodings, and locales. This class does not handle translation strings.
package |
CMS |
---|---|
license |
GPL |
author |
Robert Campbell |
since | 1.11 |
lang_key_exists() : boolean
boolean
lang_from_realm() : string
This function uses the currently set language, and will load the translations from disk if necessary.
string
lang() : string
Note, under normal circumstances this will generate an error if called from a frontend action. This function accepts variable arguments.
string
key_exists(string $key, string $realm = null) : boolean
This function uses the current language.
string
$keyThe language key
string
$realmThe language realm
boolean
set_realm(string $realm = self::CMSMS_ADMIN_REALM) : string
string
$realmThe realm name. If no name specified, self::CMSMS_ADMIN_REALM is assumed'
string
the old realm name.
CMSMS_ADMIN_REALM