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

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

Inheritance diagram for FatMessage:
TMessage

Public Member Functions

 setTranslation ( $text)
 Set the current translation of this message.
 
 translation ()
 Get the message translation.
 
- Public Member Functions inherited from TMessage
 __construct ( $key, $definition)
 Creates new message object.
 
 key ()
 Get the message key.
 
 definition ()
 Get the message definition.
 
 setInfile ( $text)
 Set the committed translation.
 
 infile ()
 Returns the committed translation.
 
 addTag ( $tag)
 Add a tag for this message.
 
 hasTag ( $tag)
 Check if this message has a given tag.
 
 getTags ()
 Return all tags for this message;.
 
 setProperty ( $key, $value)
 
 appendProperty ( $key, $value)
 
 getProperty ( $key)
 
 getPropertyNames ()
 Get all the available property names.
 

Protected Attributes

 $translation
 
- Protected Attributes inherited from TMessage
 $key
 
 $definition
 
 $infile
 
 $tags = []
 
 $props = []
 
 $reviewers = []
 

Detailed Description

Message object where you can directly set the translation.

Hence the name fat. Authors are not supported.

Definition at line 189 of file Message.php.

Member Function Documentation

◆ setTranslation()

FatMessage::setTranslation ( $text)

Set the current translation of this message.

Parameters
string$text

Definition at line 197 of file Message.php.

◆ translation()

string Stored FatMessage::translation ( )

Get the message translation.

Returns
?string

Reimplemented from TMessage.

Definition at line 201 of file Message.php.

Member Data Documentation

◆ $translation

FatMessage::$translation
protected

Definition at line 191 of file Message.php.


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