MediaWiki
master
alltrans.php
Go to the documentation of this file.
1
<?php
24
// @codeCoverageIgnoreStart
25
require_once __DIR__ .
'/../Maintenance.php'
;
26
// @codeCoverageIgnoreEnd
27
34
class
AllTrans
extends
Maintenance {
35
36
public
function
__construct
() {
37
parent::__construct();
38
$this->addDescription(
'Get all messages as defined by the English language file'
);
39
}
40
41
public
function
execute
() {
42
$localisationCache = $this->getServiceContainer()->getLocalisationCache();
43
$englishMessages = $localisationCache->getItem(
'en'
,
'messages'
);
44
foreach
( $englishMessages as $key => $_ ) {
45
$this->output(
"$key\n"
);
46
}
47
}
48
}
49
50
// @codeCoverageIgnoreStart
51
$maintClass
= AllTrans::class;
52
require_once RUN_MAINTENANCE_IF_MAIN;
53
// @codeCoverageIgnoreEnd
$maintClass
$maintClass
Definition
alltrans.php:51
AllTrans
Maintenance script that gets all messages as defined by the English language file.
Definition
alltrans.php:34
AllTrans\__construct
__construct()
Definition
alltrans.php:36
AllTrans\execute
execute()
Definition
alltrans.php:41
maintenance
language
alltrans.php
Generated on Mon Dec 30 2024 14:27:25 for MediaWiki by
1.10.0