Exemple #1
0
 function footer()
 {
     parent::footer();
     echo "\n[[Category:Localisation|Statistics]]\n";
 }
Exemple #2
0
$out->element('Untranslated', true);
$out->element('%', true);
$out->element('Redundant', true);
$out->element('%', true);
$out->blockend();
// Generate rows
foreach ($msgs as $lang => $stats) {
    $out->blockstart();
    // Language
    $out->element($wgContLang->getLanguageName(strtr($lang, '_', '-')) . " ({$lang})");
    // Translated
    $out->element($stats['total'] . '/' . $msgs['en']['total']);
    // % Translated
    $out->element($out->formatPercent($stats['total'], $msgs['en']['total']));
    // Untranslated
    $out->element($msgs['en']['total'] - $stats['total']);
    // % Untranslated
    $out->element($out->formatPercent($msgs['en']['total'] - $stats['total'], $msgs['en']['total'], true));
    // Redundant & % Redundant
    if ($stats['redundant'] == 'NC') {
        $out->element('NC');
        $out->element('NC');
    } else {
        $out->element($stats['redundant'] . '/' . $stats['total']);
        $out->element($out->formatPercent($stats['redundant'], $stats['total'], true));
    }
    $out->blockend();
}
$out->footer();
// Final output
echo $out->getContent();