MediaWiki master
|
The MediaWiki-specific implementation of IMessageFormatterFactory. More...
Inherits Wikimedia\Message\IMessageFormatterFactory.
Public Member Functions | ||||
__construct (string $format=Message::FORMAT_TEXT) | ||||
getTextFormatter (string $langCode) | ||||
Get a text message formatter for a given language.
| ||||
The MediaWiki-specific implementation of IMessageFormatterFactory.
To obtain an instance, use \MediaWiki\MediaWikiServices::getMessageFormatterFactory().
Definition at line 15 of file MessageFormatterFactory.php.
MediaWiki\Message\MessageFormatterFactory::__construct | ( | string | $format = Message::FORMAT_TEXT | ) |
string | $format | which if the Message::FORMAT_* to use in the formatters. |
Definition at line 23 of file MessageFormatterFactory.php.
MediaWiki\Message\MessageFormatterFactory::getTextFormatter | ( | string | $langCode | ) |
Get a text message formatter for a given language.
string | $langCode | The language code |
Implements Wikimedia\Message\IMessageFormatterFactory.
Definition at line 30 of file MessageFormatterFactory.php.