32 foreach ( glob( MW_INSTALL_PATH .
'/languages/messages/Messages*.php' ) as $filename ) {
33 $base = basename( $filename );
35 if ( !preg_match(
'/Messages(.*)\.php$/', $base, $m ) ) {
38 $code = str_replace(
'_',
'-', strtolower( $m[1] ) );
41 $prefs = $lang->getDatePreferences();
43 $prefs = [
'default' ];
46 foreach ( $prefs as $index => $pref ) {
50 $this->
output( $lang->date( $this->ts,
false, $pref ) );
52 $this->
output(
"\n$code time: " );
53 foreach ( $prefs as $index => $pref ) {
57 $this->
output( $lang->time( $this->ts,
false, $pref ) );
59 $this->
output(
"\n$code both: " );
60 foreach ( $prefs as $index => $pref ) {
64 $this->
output( $lang->timeanddate( $this->ts,
false, $pref ) );