Translate extension for MediaWiki
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroups\MediaWikiExtensionMessageGroup Class Reference

Message group for MediaWiki extensions. More...

Inheritance diagram for MediaWiki\Extension\Translate\MessageGroups\MediaWikiExtensionMessageGroup:
MediaWiki\Extension\Translate\MessageGroups\FileBasedMessageGroup MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase MediaWiki\Extension\Translate\MessageGroupConfiguration\MetaYamlSchemaExtender MediaWiki\Extension\Translate\MessageGroups\MessageGroup

Public Member Functions

 getDescription (?IContextSource $context=null)
 MediaWiki extensions all should have key in their i18n files describing them.
Public Member Functions inherited from MediaWiki\Extension\Translate\MessageGroups\FileBasedMessageGroup
 getFFS ()
 exists ()
 @inheritDoc
 load ( $code)
 @inheritDoc
 parseExternal (string $code)
 getSourceFilePath ( $code)
 getTargetFilename (string $code)
 replaceVariables ( $pattern, $code)
 mapCode ( $code)
 Map an internal MediaWiki language code to the code used in the exported file.
 getKeys ()
 @inheritDoc
 initCollection ( $code)
 @inheritDoc
 getMessage ( $key, $code)
 @inheritDoc
 getMessageGroupCache (string $code)
 getSourceLanguage ()
 Returns language code depicting the language of source text.
Public Member Functions inherited from MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase
 getConfiguration ()
 getId ()
 @inheritDoc
 getLabel (?IContextSource $context=null)
 @inheritDoc
 getIcon ()
 @inheritDoc
 getNamespace ()
 @inheritDoc
 isMeta ()
 @inheritDoc
 getDefinitions ()
 @inheritDoc
 getValidator ()
 @inheritDoc
 getMangler ()
 @inheritDoc
 getInsertablesSuggester ()
 Returns the configured InsertablesSuggester if any.
 getTags ( $type=null)
 @inheritDoc
 getMessageGroupStates ()
 @inheritDoc
 getTranslatableLanguages ()
 @inheritDoc
 getSupportConfig ()
 @inheritDoc
 getRelatedPage ()
 @inheritDoc

Additional Inherited Members

Static Public Member Functions inherited from MediaWiki\Extension\Translate\MessageGroups\FileBasedMessageGroup
static newFromMessageGroup (MessageGroup $group, string $targetPattern='')
 Constructs a FileBasedMessageGroup from any normal message group.
static getExtraSchema ()
 Return a data structure that will be merged with the base schema.
Static Public Member Functions inherited from MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase
static factory (array $conf)
static newFromConf (string $class, array $conf)
 Construct and initialise an instance of $class from $conf.
Public Attributes inherited from MediaWiki\Extension\Translate\MessageGroups\FileBasedMessageGroup
const NO_FILE_FORMAT = 1
Public Attributes inherited from MediaWiki\Extension\Translate\MessageGroups\MessageGroup
const DEFAULT_LANGUAGES = null
 Return value from getTranslatableLanguages when to use defaults.
Protected Member Functions inherited from MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase
 parseTags (array $patterns)
 getRawTags (?string $type=null)
 setTags (MessageCollection $collection)
 parseNamespace ()
 isSourceLanguage (string $code)
Protected Attributes inherited from MediaWiki\Extension\Translate\MessageGroups\FileBasedMessageGroup
 $reverseCodeMap
Protected Attributes inherited from MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase
array $conf
int $namespace
StringMatcher $mangler = null

Detailed Description

Message group for MediaWiki extensions.

Since
2026.09
Author
Niklas Laxström
Siebrand Mazeland @license GPL-2.0-or-later

Definition at line 16 of file MediaWikiExtensionMessageGroup.php.

Member Function Documentation

◆ getDescription()

MediaWiki\Extension\Translate\MessageGroups\MediaWikiExtensionMessageGroup::getDescription ( ?IContextSource $context = null)

MediaWiki extensions all should have key in their i18n files describing them.

This override method implements the logic to retrieve them.

Parameters
IContextSource | null$context
Returns
string

Reimplemented from MediaWiki\Extension\Translate\MessageGroups\MessageGroupBase.

Definition at line 24 of file MediaWikiExtensionMessageGroup.php.


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