Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4089998
FatMessage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
721 B
Referenced Files
None
Subscribers
None
FatMessage.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\MessageLoading
;
/**
* Message object where you can directly set the translation.
* Hence the name fat. Authors are not supported.
*
* @author Niklas Laxström
* @copyright Copyright © 2008-2010, Niklas Laxström
* @license GPL-2.0-or-later
*/
class
FatMessage
extends
Message
{
/** Stored translation. */
protected
?
string
$translation
=
null
;
/** Set the current translation of this message. */
public
function
setTranslation
(
?
string
$text
):
void
{
$this
->
translation
=
$text
;
}
public
function
translation
():
?
string
{
if
(
$this
->
translation
===
null
)
{
return
$this
->
infile
;
}
return
$this
->
translation
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 10:51 (5 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f3/bf/98f6cc180507e397c7b1a5637a42
Default Alt Text
FatMessage.php (721 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment