3 $ts = '20010115123456';
6 $IP = dirname( __FILE__
) . '/../..';
7 require_once( "$IP/maintenance/commandLine.inc" );
9 foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) {
10 $base = basename( $filename );
12 if ( !preg_match( '/Messages(.*)\.php$/', $base, $m ) ) {
15 $code = str_replace( '_', '-', strtolower( $m[1] ) );
17 $lang = Language
::factory( $code );
18 $prefs = $lang->getDatePreferences();
20 $prefs = array( 'default' );
23 foreach ( $prefs as $index => $pref ) {
27 print $lang->date( $ts, false, $pref );
29 print "\n$code time: ";
30 foreach ( $prefs as $index => $pref ) {
34 print $lang->time( $ts, false, $pref );
36 print "\n$code both: ";
37 foreach ( $prefs as $index => $pref ) {
41 print $lang->timeanddate( $ts, false, $pref );