33 foreach ( glob(
"$IP/languages/messages/Messages*.php" ) as $filename ) {
34 $base = basename( $filename );
36 if ( !preg_match(
'/Messages(.*)\.php$/', $base, $m ) ) {
39 $code = str_replace(
'_',
'-', strtolower( $m[1] ) );
42 $prefs = $lang->getDatePreferences();
44 $prefs = [
'default' ];
47 foreach ( $prefs as $index => $pref ) {
51 $this->
output( $lang->date( $this->ts,
false, $pref ) );
53 $this->
output(
"\n$code time: " );
54 foreach ( $prefs as $index => $pref ) {
58 $this->
output( $lang->time( $this->ts,
false, $pref ) );
60 $this->
output(
"\n$code both: " );
61 foreach ( $prefs as $index => $pref ) {
65 $this->
output( $lang->timeanddate( $this->ts,
false, $pref ) );