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

Message group for MediaWiki extensions. More...

Inheritance diagram for MediaWikiExtensionMessageGroup:
FileBasedMessageGroup MessageGroupBase MediaWiki\Extension\Translate\MessageGroupConfiguration\MetaYamlSchemaExtender 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 FileBasedMessageGroup
 getFFS ()
 
 exists ()
 @inheritDoc
 
 load ( $code)
 @inheritDoc
 
 parseExternal (string $code)
 
 getSourceFilePath ( $code)
 
 getTargetFilename (string $code)
 
 replaceVariables ( $pattern, $code)
 
 mapCode ( $code)
 
 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 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 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 MessageGroupBase
static factory (array $conf)
 
- Public Attributes inherited from FileBasedMessageGroup
const NO_FILE_FORMAT = 1
 
- Public Attributes inherited from MessageGroup
const DEFAULT_LANGUAGES = null
 Return value from getTranslatableLanguages when to use defaults.
 
- Protected Member Functions inherited from MessageGroupBase
 parseTags (array $patterns)
 
 getRawTags (?string $type=null)
 
 setTags (MessageCollection $collection)
 
 parseNamespace ()
 
 isSourceLanguage (string $code)
 
- Protected Attributes inherited from FileBasedMessageGroup
 $reverseCodeMap
 
- Protected Attributes inherited from MessageGroupBase
array $conf
 
int $namespace
 
StringMatcher $mangler = null
 

Detailed Description

Message group for MediaWiki extensions.

Author
Niklas Laxström @license GPL-2.0-or-later

Definition at line 12 of file MediaWikiExtensionMessageGroup.php.

Member Function Documentation

◆ getDescription()

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 MessageGroupBase.

Definition at line 20 of file MediaWikiExtensionMessageGroup.php.


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