33 $this->langCode = $langCode;
38 return $this->langCode;
55 $message->inLanguage( $this->langCode );
56 return $message->toString( $this->
format );
The MediaWiki-specific implementation of ITextFormatter.
createMessage(MessageSpecifier $spec)
Allow the Message class to be mocked in tests by constructing objects in a protected method.
format(MessageSpecifier $mv)
Convert a MessageSpecifier to text.
getLangCode()
Get the internal language code in which format() is.
__construct(string $langCode, string $format=Message::FORMAT_TEXT)
Construct a TextFormatter.