Elgg  Version 1.11
Public Member Functions | List of all members
Elgg\I18n\MessageTranslator Class Reference

WARNING: API IN FLUX. More...

Inheritance diagram for Elgg\I18n\MessageTranslator:
Elgg\I18n\TranslatorInterface

Public Member Functions

 __construct (Locale $defaultLocale, MessageBundle $messages)
 Constructor. More...
 
 translate ($key, array $args=[], Locale $locale=null)
 

Detailed Description

WARNING: API IN FLUX.

DO NOT USE DIRECTLY.

private

Since
1.11

Definition at line 11 of file MessageTranslator.php.

Constructor & Destructor Documentation

Elgg\I18n\MessageTranslator::__construct ( Locale  $defaultLocale,
MessageBundle  $messages 
)

Constructor.

Parameters
Locale$defaultLocaleThe fallback locale
MessageBundle$messagesMessages that this translator is aware of

Definition at line 26 of file MessageTranslator.php.

Member Function Documentation

Elgg\I18n\MessageTranslator::translate (   $key,
array  $args = [],
Locale  $locale = null 
)

Implements Elgg\I18n\TranslatorInterface.

Definition at line 32 of file MessageTranslator.php.


The documentation for this class was generated from the following file: