function footer() { parent::footer(); echo "\n[[Category:Localisation|Statistics]]\n"; }
} return $redundant; } // Select an output engine switch ($options['output']) { case 'csv': $out = new csvStatsOutput(); break; case 'none': $out = new noneStatsOutput(); break; case 'text': $out = new textStatsOutput(); break; case 'wiki': $out = new wikiStatsOutput(); break; default: usage(); wfDie(); break; } $langTool = new languages(); // Load message and compute stuff $msgs = array(); foreach ($langTool->getList() as $langcode) { // Since they aren't loaded by default.. require_once 'languages/Language' . $langcode . '.php'; $arr = 'wgAllMessages' . $langcode; if (@is_array(${$arr})) { $msgs[$wgContLang->lcfirst($langcode)] = array('total' => count(${$arr}), 'redundant' => redundant(${$arr}, $langcode));