MediaWiki master
|
Wrapper for injecting a LocalizationContext with lazy initialization. More...
Inherits MediaWiki\Language\LocalizationContext.
Public Member Functions | |
__construct (callable $instantiator) | |
getLanguageCode () | |
Returns the target language for UI localization. | |
msg ( $key,... $params) | |
This is the method for getting translated interface messages. | |
Wrapper for injecting a LocalizationContext with lazy initialization.
Definition at line 29 of file LazyLocalizationContext.php.
MediaWiki\Language\LazyLocalizationContext::__construct | ( | callable | $instantiator | ) |
callable | $instantiator |
Definition at line 39 of file LazyLocalizationContext.php.
MediaWiki\Language\LazyLocalizationContext::getLanguageCode | ( | ) |
Returns the target language for UI localization.
Implements MediaWiki\Language\LocalizationContext.
Definition at line 51 of file LazyLocalizationContext.php.
MediaWiki\Language\LazyLocalizationContext::msg | ( | $key, | |
$params ) |
This is the method for getting translated interface messages.
string | string[] | MessageSpecifier | $key | Message key, or array of keys, or a MessageSpecifier. |
mixed | ...$params Normal message parameters |
Implements MessageLocalizer.
Definition at line 55 of file LazyLocalizationContext.php.
References $params.