Elgg
Version 2.3
|
WARNING: API IN FLUX. More...
Public Member Functions | |
__construct (Locale $defaultLocale, MessageBundle $messages) | |
Constructor. More... | |
translate ($key, array $args=[], Locale $locale=null) | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
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 |
||
) |
Implements Elgg\I18n\TranslatorInterface.
Definition at line 32 of file MessageTranslator.php.