Ignoring the files that may only be in the en tree

also making the graph look better at a 100% uptodate translation
This commit is contained in:
Vincent Gevers
2004-11-05 09:41:58 +00:00
parent 8b24aedaee
commit 24d5ac05b2
3 changed files with 11 additions and 4 deletions

View File

@ -206,7 +206,8 @@ function get_missfiles($idx, $lang)
$result = sqlite_query($idx, $sql);
$num = sqlite_num_rows($result);
if ($num == 0) {
return false;
// only 'null' will produce a 0 with sizeof()
return null;
} else {
$tmp = array();
while ($r = sqlite_fetch_array($result, SQLITE_ASSOC)) {

View File

@ -67,13 +67,15 @@ function generation_image($TYPE, $lang) {
$pourcent[] = round($valeur * 100 / $total);
}
$noExplode = ($Total_files_lang == $up_to_date) ? 1 : 0;
$legend = array($pourcent[0] . '%% up to date ('.$up_to_date.')', $pourcent[1] . '%% critical ('.$critical.')', $pourcent[2] . '%% old ('.$old.')', $pourcent[3] . '%% missing ('.$missing.')', $pourcent[4] . '%% without revtag ('.$no_tag.')');
$title = ucfirst($TYPE). ' : Details for '.$LANGUAGES[$lang].' Doc';
$graph = new PieGraph(530,300);
$graph->SetShadow();
$graph->title->Set($title);
$graph->title->Align('left');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
@ -86,7 +88,9 @@ function generation_image($TYPE, $lang) {
$p1 = new PiePlot3D($data);
$p1->SetSliceColors(array("#68d888", "#ff6347", "#eee8aa", "#dcdcdc", "#f4a460"));
$p1->ExplodeAll();
if ($noExplode != 1) {
$p1->ExplodeAll();
}
$p1->SetCenter(0.35,0.55);
$p1->value->Show(false);

View File

@ -266,7 +266,9 @@ function do_revcheck($dir = '') {
if (
(!is_dir($DOCS . 'en' . $dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' )
|| ($file == "functions.xml" && strpos($dir, '/reference') !== false)
|| $dir == '/chmonly') {
|| $dir == '/chmonly'
|| $file == 'contributors.ent' || $file == 'contributors.xml'
|| ($dir == '/appendices' && $file == 'reserved.constants.xml')) {
continue;
}