27require_once __DIR__ .
'/../Maintenance.php';
38 parent::__construct();
39 $this->addDescription(
'Dump an entire language, using the keys from English' );
44 $localisationCache = $this->getServiceContainer()->getLocalisationCache();
45 $localisationMessagesEn = $localisationCache->getItem(
'en',
'messages' );
46 foreach ( $localisationMessagesEn as $key => $_ ) {
47 $messages[$key] =
wfMessage( $key )->text();
49 $this->output(
"MediaWiki " .
MW_VERSION .
" language file\n" );
50 $this->output( serialize( $messages ) );
56require_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.