47 foreach ( glob(
"$IP/languages/messages/Messages*.php" ) as $filename ) {
48 $base = basename( $filename );
50 if ( !preg_match(
'/Messages(.*)\.php$/', $base, $m ) ) {
53 $code = str_replace(
'_',
'-', strtolower( $m[1] ) );
56 $prefs = $lang->getDatePreferences();
58 $prefs = [
'default' ];
61 foreach ( $prefs as $index => $pref ) {
65 $this->
output( $lang->date( $this->ts,
false, $pref ) );
67 $this->
output(
"\n$code time: " );
68 foreach ( $prefs as $index => $pref ) {
72 $this->
output( $lang->time( $this->ts,
false, $pref ) );
74 $this->
output(
"\n$code both: " );
75 foreach ( $prefs as $index => $pref ) {
79 $this->
output( $lang->timeanddate( $this->ts,
false, $pref ) );