$value) { foreach ($wgMessages[$langCode] as $ckey => $cvalue) { if (!strcmp($key,$ckey)) { if (!strcmp($value,$cvalue)) { if (!strcmp($runMode,'raw')) { print("$key\n"); } else if (!strcmp($runMode,'wiki')) { $uKey = ucfirst($key); print("* MediaWiki:$uKey/$langCode\n"); } else { print("* $key\n"); } $count++; } } } } if (!strcmp($runMode,'text')) { echo "\nThere are $count duplicates messages in ".$options['lang'].", against to ".$options['clang']."\n"; } }