MediaWiki
REL1_34
alltrans.php
Go to the documentation of this file.
1
<?php
24
require_once __DIR__ .
'/../Maintenance.php'
;
25
32
class
AllTrans
extends
Maintenance
{
33
public
function
__construct
() {
34
parent::__construct();
35
$this->
addDescription
(
'Get all messages as defined by the English language file'
);
36
}
37
38
public
function
execute
() {
39
$englishMessages = array_keys( Language::getMessagesFor(
'en'
) );
40
foreach
( $englishMessages as $key ) {
41
$this->
output
(
"$key\n"
);
42
}
43
}
44
}
45
46
$maintClass
= AllTrans::class;
47
require_once
RUN_MAINTENANCE_IF_MAIN
;
RUN_MAINTENANCE_IF_MAIN
const RUN_MAINTENANCE_IF_MAIN
Definition
Maintenance.php:39
$maintClass
$maintClass
Definition
alltrans.php:46
AllTrans
Maintenance script that gets all messages as defined by the English language file.
Definition
alltrans.php:32
AllTrans\__construct
__construct()
Default constructor.
Definition
alltrans.php:33
AllTrans\execute
execute()
Do the actual work.
Definition
alltrans.php:38
Maintenance
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
Definition
Maintenance.php:82
Maintenance\output
output( $out, $channel=null)
Throw some output to the user.
Definition
Maintenance.php:453
Maintenance\addDescription
addDescription( $text)
Set the description text.
Definition
Maintenance.php:348
maintenance
language
alltrans.php
Generated on Mon Nov 25 2024 16:06:25 for MediaWiki by
1.10.0