MediaWiki REL1_31
alltrans.php
Go to the documentation of this file.
1<?php
24require_once __DIR__ . '/../Maintenance.php';
25
32class 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;
47require_once RUN_MAINTENANCE_IF_MAIN;
$maintClass
Definition alltrans.php:46
Maintenance script that gets all messages as defined by the English language file.
Definition alltrans.php:32
__construct()
Default constructor.
Definition alltrans.php:33
execute()
Do the actual work.
Definition alltrans.php:38
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addDescription( $text)
Set the description text.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
require_once RUN_MAINTENANCE_IF_MAIN