45 foreach ( glob(
"$IP/languages/messages/Messages*.php" ) as $filename ) {
46 $base = basename( $filename );
48 if ( !preg_match(
'/Messages(.*)\.php$/', $base, $m ) ) {
51 $code = str_replace(
'_',
'-', strtolower( $m[1] ) );
52 $this->output(
"$code " );
53 $lang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( $code );
54 $prefs = $lang->getDatePreferences();
56 $prefs = [
'default' ];
58 $this->output(
"date: " );
59 foreach ( $prefs as $index => $pref ) {
61 $this->output(
' | ' );
63 $this->output( $lang->date( $this->ts,
false, $pref ) );
65 $this->output(
"\n$code time: " );
66 foreach ( $prefs as $index => $pref ) {
68 $this->output(
' | ' );
70 $this->output( $lang->time( $this->ts,
false, $pref ) );
72 $this->output(
"\n$code both: " );
73 foreach ( $prefs as $index => $pref ) {
75 $this->output(
' | ' );
77 $this->output( $lang->timeanddate( $this->ts,
false, $pref ) );
79 $this->output(
"\n\n" );