|
Elgg
Version 1.11
|
WARNING: API IN FLUX. More...
Public Member Functions | |
| __construct (Locale $defaultLocale, MessageBundle $messages) | |
| Constructor. More... | |
| translate ($key, array $args=[], Locale $locale=null) | |
| @inheritDoc More... | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
@access private
Definition at line 11 of file MessageTranslator.php.
| Elgg\I18n\MessageTranslator::__construct | ( | Locale | $defaultLocale, |
| MessageBundle | $messages | ||
| ) |
Constructor.
| Locale | $defaultLocale | The fallback locale |
| MessageBundle | $messages | Messages that this translator is aware of |
Definition at line 26 of file MessageTranslator.php.
| Elgg\I18n\MessageTranslator::translate | ( | $key, | |
| array | $args = [], |
||
| Locale | $locale = null |
||
| ) |
@inheritDoc
Implements Elgg\I18n\TranslatorInterface.
Definition at line 32 of file MessageTranslator.php.