- \GenericLocale
class (none) \ GenericLocale
- All implemented interfaces:
- Locale
Method Summary
Name | Description |
---|---|
__construct($key, $title) | |
getKey() | |
getTitle() | |
load() | Load the locale data at runtime. This method should only be called once per request at most. |
public function __construct($key, $title)
public function getKey()
- Returns:
a string representing the locale, e.g. ISO code
public function getTitle()
- Returns:
the English name for this locale, e.g. 'French'
public function load()
Load the locale data at runtime. This method should only be called once per request at most. (from load)
- Returns:
an array of (keys => values) which can be cached.