Represents a parsing output produced by TranslatablePageParser. More...
Public Member Functions | |
__construct (string $template, array $sectionMap, array $unitMap) | |
sourcePageTemplate () | |
Returns template that contains <translate> tags. | |
translationPageTemplate () | |
Returns template that does not contain <translate> tags. | |
units () | |
sourcePageTextForRendering (Language $sourceLanguage) | |
Returns the source page wikitext used for rendering the page. | |
sourcePageTextForSaving () | |
Returns the source page with translation unit markers. | |
sourcePageTemplateForDiffs () | |
Returns the page text with translation tags and unit placeholders for easy diffs. | |
Represents a parsing output produced by TranslatablePageParser.
It is required generate translatable and translation page sources or just get the list of translations units.
Definition at line 19 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::__construct | ( | string | $template, |
array | $sectionMap, | ||
array | $unitMap ) |
Definition at line 27 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::sourcePageTemplate | ( | ) |
Returns template that contains <translate> tags.
Definition at line 37 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::sourcePageTemplateForDiffs | ( | ) |
Returns the page text with translation tags and unit placeholders for easy diffs.
Definition at line 85 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::sourcePageTextForRendering | ( | Language | $sourceLanguage | ) |
Returns the source page wikitext used for rendering the page.
Definition at line 62 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::sourcePageTextForSaving | ( | ) |
Returns the source page with translation unit markers.
Definition at line 74 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::translationPageTemplate | ( | ) |
Returns template that does not contain <translate> tags.
Definition at line 47 of file ParserOutput.php.
MediaWiki\Extension\Translate\PageTranslation\ParserOutput::units | ( | ) |
Definition at line 57 of file ParserOutput.php.