Message object where you can directly set the translation. More...
Public Member Functions | |
| setTranslation (?string $text) | |
| Set the current translation of this message. | |
| translation () | |
| Get the message translation. | |
| Public Member Functions inherited from MediaWiki\Extension\Translate\MessageLoading\Message | |
| __construct (private readonly string $key, private readonly ?string $definition,) | |
| Creates new message object. | |
| key () | |
| Get the message key. | |
| definition () | |
| Get the message definition. | |
| rawDefinition () | |
| setInfile (string $text) | |
| Set the committed translation. | |
| infile () | |
| Returns the committed translation. | |
| addTag (string $tag) | |
| Add a tag for this message. | |
| hasTag (string $tag) | |
| Check if this message has a given tag. | |
| getTags () | |
| Return all tags for this message. | |
| setProperty (string $key, $value) | |
| appendProperty (string $key, $value) | |
| getProperty (string $key) | |
| getPropertyNames () | |
| Get all the available property names. | |
Protected Attributes | |
| string | $translation = null |
| Stored translation. | |
| Protected Attributes inherited from MediaWiki\Extension\Translate\MessageLoading\Message | |
| string | $infile = null |
| Committed in-file translation. | |
| array | $tags = [] |
| array | $props = [] |
| Message properties. | |
| array | $reviewers = [] |
Message object where you can directly set the translation.
Hence the name fat. Authors are not supported.
Definition at line 14 of file FatMessage.php.
| MediaWiki\Extension\Translate\MessageLoading\FatMessage::setTranslation | ( | ?string | $text | ) |
Set the current translation of this message.
Definition at line 19 of file FatMessage.php.
| MediaWiki\Extension\Translate\MessageLoading\FatMessage::translation | ( | ) |
Get the message translation.
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\Message.
Definition at line 23 of file FatMessage.php.
|
protected |
Stored translation.
Definition at line 16 of file FatMessage.php.