Order by:
if($order=='trans'){ ?>
# of translated strings || Team name
}else{ ?>
# of translated strings || Team name
} ?>
|
Version:
if($version=='branch'){ ?>
Development || =$branch?>
}else{ ?>
Development || =$branch?>
} ?>
|
Show:
if($package=='alloff'){ ?>
All official packages
}else{ ?>
All official packages
}
echo " || ";
if($package=='allcore'){ ?>
Official core packages
}else{ ?>
Official core packages
}
echo " || ";
if($package=='all'){ ?>
All packages
}else{ ?>
All packages
}
echo " || ";
if($package=='allun'){ ?>
All unofficial packages
}else{ ?>
All unofficial packages
}
echo " || ";
?>
By language
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
echo " Official: ";
}else{
$packs = ($version == 'trunk') ? $existing_extra_packs_t : $existing_extra_packs_b;
echo " Unofficial: ";
}
$first=true;
foreach($packs as $pack){
if($first){
$first = false;
}else{
echo "||";
}
$packdisplay = $pack;
if($i==1){
$pack = getdomain($pack);
}
if($pack==$package){
if($i==1){
$official=false;
}
?>
=$packdisplay?>
}else{ ?>
=$packdisplay?>
}
}
}
?>
|
|
|
$i=0;
$pos=1;
$oldstat[0]=0;
$oldstat[1]=0;
$oldstat[2]=0;
foreach($stats as $lang => $stat){
$total = $stat[1] + $stat[2] + $stat[3];
$class="-" . ($i%2);
if(cmp_translated($stat, $oldstat)!=0){
$pos=$i+1;
}
?>
if($order=='trans'){ ?>
=($pos)?> |
}
?>
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "" . $langs[$lang] . " (" . $lang . ")";
}else{
if($official){
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
echo "" . $langs[$lang] . " (" .$lang . ")";
}else{
$packname = getpackage($package);
$repo = ($version == 'trunk') ? $wescamptrunkversion : $wescampbranchversion;
$reponame = "$packname-$repo";
echo "" . $langs[$lang] . " ($lang)";
}
} ?>
|
if(($stat[0]==1) || ($total == 0)){ ?>
Error in echo $langs[$lang] . "($lang)"; ?> translation files |
}else{ ?>
echo $stat[1]; ?> |
printf("%0.2f", ($stat[1]*100)/$main_total); ?> |
echo $stat[2]; ?> |
printf("%0.2f", ($stat[2]*100)/$main_total); ?> |
echo ($main_total - $stat[1] - $stat[2]); ?> |
printf("%0.2f", (($main_total-$stat[1]-$stat[2])*100)/$main_total); ?> |
echo $main_total; ?> |
$trans = sprintf("%d", ($stat[1]*200)/$main_total);?>
$fuzzy = sprintf("%d", ($stat[2]*200)/$main_total);?>
$untrans = 200 - $trans - $fuzzy;?>
   |
} ?>
$i++;
$oldstat = $stat;
}
?>
if($order=='trans'){ ?>
|
}
?>
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "Template catalog";
}else{
if($official){
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
echo "Template catalog";
}else{
$packname = getpackage($package);
$repo = ($version == 'trunk') ? $wescamptrunkversion : $wescampbranchversion;
$reponame = "$packname-$repo";
echo "Template catalog";
}
}
?> |
|
|
|
|
|
|
echo $main_total; ?> |
|
|