Translate extension for MediaWiki
Loading...
Searching...
No Matches
FatMessage.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\MessageLoading;
5
14
class
FatMessage
extends
Message
{
16
protected
?
string
$translation
=
null
;
17
19
public
function
setTranslation
( ?
string
$text ): void {
20
$this->
translation
= $text;
21
}
22
23
public
function
translation
(): ?string {
24
if ( $this->translation === null ) {
25
return
$this->infile;
26
}
27
28
return
$this->translation;
29
}
30
}
MediaWiki\Extension\Translate\MessageLoading\FatMessage
Message object where you can directly set the translation.
Definition
FatMessage.php:14
MediaWiki\Extension\Translate\MessageLoading\FatMessage\$translation
string $translation
Stored translation.
Definition
FatMessage.php:16
MediaWiki\Extension\Translate\MessageLoading\FatMessage\translation
translation()
Get the message translation.
Definition
FatMessage.php:23
MediaWiki\Extension\Translate\MessageLoading\FatMessage\setTranslation
setTranslation(?string $text)
Set the current translation of this message.
Definition
FatMessage.php:19
MediaWiki\Extension\Translate\MessageLoading\Message
Interface for message objects used by MessageCollection.
Definition
Message.php:13
src
MessageLoading
FatMessage.php
Generated by
1.10.0