29require_once __DIR__ .
'/../Maintenance.php';
40 parent::__construct();
41 $this->
addDescription(
'Dump an entire language, using the keys from English' );
47 $localisationMessagesEn = $localisationCache->getItem(
'en',
'messages' );
48 foreach ( $localisationMessagesEn as $key => $_ ) {
49 $messages[$key] =
wfMessage( $key )->text();
52 $this->
output( serialize( $messages ) );
58require_once RUN_MAINTENANCE_IF_MAIN;
const MW_VERSION
The running version of MediaWiki.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Maintenance script that dumps an entire language, using the keys from English.
__construct()
Default constructor.
execute()
Do the actual work.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
output( $out, $channel=null)
Throw some output to the user.
getServiceContainer()
Returns the main service container.
addDescription( $text)
Set the description text.