Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageLoading\FatMessage Class Reference

Message object where you can directly set the translation. More...

Inheritance diagram for MediaWiki\Extension\Translate\MessageLoading\FatMessage:
MediaWiki\Extension\Translate\MessageLoading\Message

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 (string $key, ?string $definition)
 Creates new message object.
 
 key ()
 Get the message key.
 
 definition ()
 Get the message definition.
 
 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 $key
 Message display key.
 
string $definition
 Message definition.
 
string $infile = null
 Committed in-file translation.
 
array $tags = []
 
array $props = []
 Message properties.
 
array $reviewers = []
 

Detailed Description

Message object where you can directly set the translation.

Hence the name fat. Authors are not supported.

Author
Niklas Laxström

Definition at line 14 of file FatMessage.php.

Member Function Documentation

◆ setTranslation()

MediaWiki\Extension\Translate\MessageLoading\FatMessage::setTranslation ( ?string $text)

Set the current translation of this message.

Definition at line 19 of file FatMessage.php.

◆ translation()

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.

Member Data Documentation

◆ $translation

string MediaWiki\Extension\Translate\MessageLoading\FatMessage::$translation = null
protected

Stored translation.

Definition at line 16 of file FatMessage.php.


The documentation for this class was generated from the following file: