Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\PageTranslation\TranslationPage Class Reference

Generates wikitext source code for translation pages. More...

Public Member Functions

 __construct (ParserOutput $output, WikiPageMessageGroup $group, Language $targetLanguage, Language $sourceLanguage, bool $showOutdated, bool $wrapUntranslated, Title $sourcePageTitle)
 
 getPageContent (Parser $parser)
 
 getMessageCollection ()
 
 filterMessageCollection (MessageCollection $collection)
 
 generateSourceFromTranslations (Parser $parser, array $messages)
 
 generateSourceFromMessageCollection (Parser $parser, MessageCollection $collection)
 

Detailed Description

Generates wikitext source code for translation pages.

Also handles loading of translations, but that can be skipped and translations given directly.

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

Definition at line 24 of file TranslationPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::__construct ( ParserOutput $output,
WikiPageMessageGroup $group,
Language $targetLanguage,
Language $sourceLanguage,
bool $showOutdated,
bool $wrapUntranslated,
Title $sourcePageTitle )

Definition at line 40 of file TranslationPage.php.

Member Function Documentation

◆ filterMessageCollection()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::filterMessageCollection ( MessageCollection $collection)

Definition at line 69 of file TranslationPage.php.

◆ generateSourceFromMessageCollection()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::generateSourceFromMessageCollection ( Parser $parser,
MessageCollection $collection )

Definition at line 114 of file TranslationPage.php.

◆ generateSourceFromTranslations()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::generateSourceFromTranslations ( Parser $parser,
array $messages )
Parameters
Parser$parser
Message[]$messages

Definition at line 96 of file TranslationPage.php.

◆ getMessageCollection()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::getMessageCollection ( )

Definition at line 65 of file TranslationPage.php.

◆ getPageContent()

MediaWiki\Extension\Translate\PageTranslation\TranslationPage::getPageContent ( Parser $parser)
Since
2021.07

Definition at line 59 of file TranslationPage.php.


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