plugin_lang.php: Make output more readable.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2019-08-17 12:57:57 +02:00
parent 9c66269fce
commit d2ad092763

@ -53,7 +53,7 @@ while(($file = readdir($d)) !== false) {
$const['checked'] = array_merge($const['checked'], $current); $const['checked'] = array_merge($const['checked'], $current);
echo count($const['native'][$file]) . " constants.\n"; echo count($const['native'][$file]) . " constants.\n";
} else { } else {
echo "NOTICE: English language of $file does not exist.\n"; echo "NOTICE: English language of $file does not exist.\n\n";
continue; continue;
} }
@ -71,7 +71,8 @@ while(($file = readdir($d)) !== false) {
echo "\n"; echo "\n";
} }
echo "Showing missing constants:\n\n"; $const['missing'] = array_filter($const['missing']);
echo "\n\nShowing missing constants:\n\n";
foreach($const['missing'] AS $file => $constants) { foreach($const['missing'] AS $file => $constants) {
echo strtoupper($file) . ":\n"; echo strtoupper($file) . ":\n";
foreach($constants AS $const => $val) { foreach($constants AS $const => $val) {