summaryrefslogtreecommitdiff
path: root/maintenance/language/dumpMessages.php
blob: bd7e2aeda6265c9d0f4d7c628b36459718845575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * @todo document
 * @package MediaWiki
 * @subpackage Maintenance
 */

/** */
require_once( dirname(__FILE__).'/../commandLine.inc' );
$wgMessageCache->disableTransform();
$messages = array();
$wgEnglishMessages = array_keys( Language::getMessagesFor( 'en' ) );
foreach ( $wgEnglishMessages as $key )
{
	$messages[$key] = wfMsg( $key );
}
print "MediaWiki $wgVersion language file\n";
print serialize( $messages );

?>