Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\MessageInLanguageProvider Interface Reference

A provider for messages in a particular language. More...

+ Inheritance diagram for Wikibase\Lib\MessageInLanguageProvider:

Public Member Functions

 msgInLang ( $key, $language,... $params)
 Get a translated interface message in the specified language.
 

Detailed Description

A provider for messages in a particular language.

The language is not optional – this service distinguished from {

See also
MessageLocalizer} by being agnostic of the user language.

Member Function Documentation

◆ msgInLang()

Wikibase\Lib\MessageInLanguageProvider::msgInLang ( $key,
$language,
$params )

Get a translated interface message in the specified language.

See also
MessageLocalizer::msg()
Message::inLanguage()
Parameters
string | string[] | MessageSpecifier$key
Language | StubUserLang | string$language
mixed...$params
Returns
Message

Implemented in Wikibase\Lib\MediaWikiMessageInLanguageProvider.


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