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) | |
generateSource () | |
Generate translation page source using default options. | |
getPageContent () | |
getMessageCollection () | |
filterMessageCollection (MessageCollection $collection) | |
extractMessages (MessageCollection $collection) | |
generateSourceFromTranslations (array $messages) | |
Generates wikitext source code for translation pages.
Also handles loading of translations, but that can be skipped and translations given directly.
Definition at line 23 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::__construct | ( | ParserOutput | $output, |
WikiPageMessageGroup | $group, | ||
Language | $targetLanguage, | ||
Language | $sourceLanguage, | ||
bool | $showOutdated, | ||
bool | $wrapUntranslated, | ||
Title | $sourcePageTitle ) |
Definition at line 39 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::extractMessages | ( | MessageCollection | $collection | ) |
Definition at line 86 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::filterMessageCollection | ( | MessageCollection | $collection | ) |
Definition at line 76 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::generateSource | ( | ) |
Generate translation page source using default options.
Definition at line 58 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::generateSourceFromTranslations | ( | array | $messages | ) |
TMessage[] | $messages |
Definition at line 97 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::getMessageCollection | ( | ) |
Definition at line 72 of file TranslationPage.php.
MediaWiki\Extension\Translate\PageTranslation\TranslationPage::getPageContent | ( | ) |
Definition at line 66 of file TranslationPage.php.