MediaWiki  master
MessageLocalizer Interface Reference

Interface for localizing messages in MediaWiki. More...

Inheritance diagram for MessageLocalizer:

Public Member Functions

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

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 SpecialPage, ResourceLoaderContext, RequestContext, DerivativeContext, ContextSource, and Action.

Referenced by ApiFormatBase\closePrinter(), MediaWiki\Preferences\DefaultPreferencesFactory\editingPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), MediaWiki\Preferences\DefaultPreferencesFactory\getDateOptions(), WatchedItem\getExpiryInDaysText(), WatchAction\getExpiryOptionsFromMessage(), ApiHelp\getHelp(), ApiHelp\getHelpInternal(), MediaWiki\Preferences\DefaultPreferencesFactory\getImageSizes(), Linker\getInvalidTitleDescription(), UserGroupMembership\getLink(), MediaWiki\Preferences\DefaultPreferencesFactory\getThumbSizes(), MediaWiki\Preferences\DefaultPreferencesFactory\getTimezoneOptions(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\renderingPreferences(), ChangesList\showCharacterDifference(), DeleteAction\showHistoryWarnings(), LogEventsList\showLogExtract(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), SpecialEmailUser\submit(), ChangeTags\tagLongDescriptionMessage(), ChangeTags\tagShortDescriptionMessage(), DeleteAction\tempDelete(), MediaWiki\Actions\FileDeleteAction\tempExecute(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().


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