39 $this->langCode = $langCode;
40 $this->converter = $converter;
45 return $this->langCode;
48 public function format( MessageValue $mv ) {
49 $message = $this->converter->convertMessageValue( $mv );
50 $message->inLanguage( $this->langCode );
The MediaWiki-specific implementation of ITextFormatter.
getLangCode()
Get the internal language code in which format() is.
__construct(string $langCode, Converter $converter, string $format=Message::FORMAT_TEXT)
Construct a TextFormatter.
The Message class deals with fetching and processing of interface message into a variety of formats.
const FORMAT_TEXT
Transform {{..}} constructs but don't transform to HTML.
string null false $message