Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429532
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
Sat, May 16, 17:42 (9 h, 43 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
68/f2/cc631da58853f5fb9d7442aea20a
Default Alt Text
FatMessage.php (721 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment