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 (Bcp47Code $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 | ( | Bcp47Code | $langCode | ) |
Bcp47Code | $langCode | a language code |
Wikimedia\Parsoid\Language\ConstantLanguageGuesser::guessLang | ( | Element | $node | ) |
Element | $node |
Reimplemented from Wikimedia\Parsoid\Language\LanguageGuesser.