MediaWiki 1.42.0
MessageLocalizer Interface Reference

Interface for localizing messages in MediaWiki. More...

Inherited by Action, MediaWiki\Language\LocalizationContext, MediaWiki\ResourceLoader\Context, and MediaWiki\SpecialPage\SpecialPage.

Public Member Functions

 msg ( $key,... $params)
 This is the method for getting translated interface messages.
 

Detailed Description

Interface for localizing messages in MediaWiki.

Stability: stable
to implement
Since
1.30

Definition at line 29 of file MessageLocalizer.php.

Member Function Documentation

◆ msg()

MessageLocalizer::msg ( $key,
$params )

This is the method for getting translated interface messages.

See also
https://www.mediawiki.org/wiki/Manual:Messages_API
Message::__construct
Parameters
string | string[] | MessageSpecifier$keyMessage key, or array of keys, or a MessageSpecifier.
mixed...$params Normal message parameters
Returns
Message

Implemented in Action, MediaWiki\Context\ContextSource, MediaWiki\Context\DerivativeContext, MediaWiki\Context\RequestContext, MediaWiki\Language\LazyLocalizationContext, MediaWiki\ResourceLoader\Context, and MediaWiki\SpecialPage\SpecialPage.

Referenced by MediaWiki\Pager\PagerTools\__construct(), MediaWiki\Preferences\DefaultPreferencesFactory\editingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), ChangeTags\getChangeTagList(), MediaWiki\EditPage\EditPage\getCopyrightWarning(), MediaWiki\Preferences\DefaultPreferencesFactory\getDateOptions(), ApiHelp\getHelp(), MediaWiki\Preferences\DefaultPreferencesFactory\getImageSizes(), MediaWiki\Linker\Linker\getInvalidTitleDescription(), TextSlotDiffRenderer\getTablePrefix(), MediaWiki\Skin\SkinComponentLastModified\getTemplateData(), MediaWiki\Preferences\DefaultPreferencesFactory\getThumbSizes(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\renderingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\searchPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), ChangeTags\tagLongDescriptionMessage(), ChangeTags\tagShortDescriptionMessage(), DeleteAction\tempDelete(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().


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