MediaWiki master
MediaWiki\Language\LocalizationContext Interface Reference

Interface supporting message localization in MediaWiki. More...

Inherits MessageLocalizer.

Inherited by MediaWiki\Context\IContextSource, and MediaWiki\Language\LazyLocalizationContext.

Collaboration diagram for MediaWiki\Language\LocalizationContext:

Public Member Functions

 getLanguageCode ()
 Returns the target language for UI localization.
 
- Public Member Functions inherited from MessageLocalizer
 msg ( $key,... $params)
 This is the method for getting translated interface messages.
 

Detailed Description

Interface supporting message localization in MediaWiki.

Since
1.42

Definition at line 32 of file LocalizationContext.php.

Member Function Documentation

◆ getLanguageCode()

MediaWiki\Language\LocalizationContext::getLanguageCode ( )

Returns the target language for UI localization.

Returns
Bcp47Code

Implemented in MediaWiki\Context\ContextSource, MediaWiki\Context\RequestContext, and MediaWiki\Language\LazyLocalizationContext.


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