Parsoid
A bidirectional parser between wikitext and HTML5
|
A simple LanguageGuesser
that returns the same "source language" for every node.
More...
Public Member Functions | ||||
__construct (string $langCode) | ||||
guessLang (Element $node) | ||||
| ||||
A simple LanguageGuesser
that returns the same "source language" for every node.
Appropriate for wikis which by convention are written in a single variant.
Wikimedia\Parsoid\Language\ConstantLanguageGuesser::__construct | ( | string | $langCode | ) |
string | $langCode |
Wikimedia\Parsoid\Language\ConstantLanguageGuesser::guessLang | ( | Element | $node | ) |
Element | $node |
Reimplemented from Wikimedia\Parsoid\Language\LanguageGuesser.