MediaWiki REL1_40
MessageLocalizer Interface Reference

Interface for localizing messages in MediaWiki. More...

Inherited by Action, IContextSource, MediaWiki\ResourceLoader\Context, and 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, ContextSource, DerivativeContext, RequestContext, MediaWiki\ResourceLoader\Context, and SpecialPage.

Referenced by 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(), UserGroupMembership\getLink(), MediaWiki\Skin\SkinComponentLastModified\getTemplateData(), MediaWiki\Preferences\DefaultPreferencesFactory\getThumbSizes(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\renderingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\searchPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), MediaWiki\Mail\EmailUser\submit(), ChangeTags\tagLongDescriptionMessage(), ChangeTags\tagShortDescriptionMessage(), DeleteAction\tempDelete(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().


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