4 * @ingroup MaintenanceLanguage
7 $ts = '20010115123456';
10 $IP = dirname( __FILE__
) . '/../..';
11 require_once( "$IP/maintenance/commandLine.inc" );
13 foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) {
14 $base = basename( $filename );
16 if ( !preg_match( '/Messages(.*)\.php$/', $base, $m ) ) {
19 $code = str_replace( '_', '-', strtolower( $m[1] ) );
21 $lang = Language
::factory( $code );
22 $prefs = $lang->getDatePreferences();
24 $prefs = array( 'default' );
27 foreach ( $prefs as $index => $pref ) {
31 print $lang->date( $ts, false, $pref );
33 print "\n$code time: ";
34 foreach ( $prefs as $index => $pref ) {
38 print $lang->time( $ts, false, $pref );
40 print "\n$code both: ";
41 foreach ( $prefs as $index => $pref ) {
45 print $lang->timeanddate( $ts, false, $pref );