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 | ) |
Definition at line 36 of file LazyLocalizationContext.php.
MediaWiki\Language\LazyLocalizationContext::getLanguageCode | ( | ) |
Returns the target language for UI localization.
Implements MediaWiki\Language\LocalizationContext.
Definition at line 48 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. @phpcs:ignore Generic.Files.LineLength |
MessageParam|MessageSpecifier|string|int|float|list<MessageParam|MessageSpecifier|string|int|float> | ...$params See Message::params() |
Implements MessageLocalizer.
Definition at line 52 of file LazyLocalizationContext.php.