39 $this->langCode = $langCode;
40 $this->converter = $converter;
45 return $this->langCode;
49 $message = $this->converter->convertMessageValue( $mv );
50 $message->inLanguage( $this->langCode );
51 return $message->toString( $this->
format );
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.
format(MessageValue $mv)
Convert a MessageValue to text.
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.