|
Elgg
Version 2.3
|
WARNING: API IN FLUX. More...
Public Member Functions | |
| __construct (array $messages) | |
| Constructor. More... | |
| get ($key, Locale $locale) | |
| @inheritDoc More... | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
Uses an array as a source for the message bundle.
This is mostly useful for testing so we can configure translators in-memory instead of going to the file system.
@access private
Definition at line 16 of file ArrayMessageBundle.php.
| Elgg\I18n\ArrayMessageBundle::__construct | ( | array | $messages | ) |
Constructor.
| array | $messages | Map of locales to maps of keys to message-templates |
Definition at line 26 of file ArrayMessageBundle.php.
| Elgg\I18n\ArrayMessageBundle::get | ( | $key, | |
| Locale | $locale | ||
| ) |
@inheritDoc
Implements Elgg\I18n\MessageBundle.
Definition at line 31 of file ArrayMessageBundle.php.