[[User:Multichill/stats2]]
Appearance
Fragment of a discussion from User talk:Multichill
Hoi Robin,
Ik doe dit met een simpel php scriptje
<?php include("WikimediaLicenseTexts.i18n.php"); $result = array(); foreach ($messages as $lang => $texts) { foreach ($texts as $title => $contents) { //print $title; $result[$title]++; } } print "{| class=\"sortable\" \n"; print "! message !! number of translations\n"; foreach ($result as $message => $count) { print "|-\n"; print "| [[Special:Translations/MediaWiki:" . $message . "|" . $message . "]]" . " || " . $count . "\n"; } //var_dump($result); /* $total = count($messages['en']); ?> Stats on ~~~ {| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%" |- !{{int:translate-gs-code}} !{{int:translate-page-language}} !Wikimedia License Texts <? foreach ($messages as $lang => $texts) { print "|-\n"; print "|[http://translatewiki.net/w/i.php?title=Special:Translate&group=ext-wikimedialicensetexts&language=" . $lang . " " . $lang . "]\n"; print "|{{#languagename:" . $lang . "}}\n"; $percentage = round(count($texts) / $total * 100, 2); print "|bgcolor=\"#FFFFFF\"|" . $percentage . "%\n"; //print "|" . $lang //print $lang . ' - ' . count($texts) . "\n"; } */ ?> |}
Keertje in elkaar gehacked en nooit echt de moeite genomen om er iets netjes van te maken