38 $this->langCode = $langCode;
39 $this->converter = $converter;
44 return $this->langCode;
48 $message = $this->converter->convertMessageValue( $mv );
49 $message->inLanguage( $this->langCode );
50 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.