Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
FatMessage.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageLoading;
5
14class 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}
Message object where you can directly set the translation.
setTranslation(?string $text)
Set the current translation of this message.
Interface for message objects used by MessageCollection.
Definition Message.php:13