mirror of
https://github.com/php/web-doc.git
synced 2025-08-13 14:40:31 +00:00
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:
@ -206,7 +206,8 @@ function get_missfiles($idx, $lang)
|
|||||||
$result = sqlite_query($idx, $sql);
|
$result = sqlite_query($idx, $sql);
|
||||||
$num = sqlite_num_rows($result);
|
$num = sqlite_num_rows($result);
|
||||||
if ($num == 0) {
|
if ($num == 0) {
|
||||||
return false;
|
// only 'null' will produce a 0 with sizeof()
|
||||||
|
return null;
|
||||||
} else {
|
} else {
|
||||||
$tmp = array();
|
$tmp = array();
|
||||||
while ($r = sqlite_fetch_array($result, SQLITE_ASSOC)) {
|
while ($r = sqlite_fetch_array($result, SQLITE_ASSOC)) {
|
||||||
|
@ -67,13 +67,15 @@ function generation_image($TYPE, $lang) {
|
|||||||
$pourcent[] = round($valeur * 100 / $total);
|
$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.')');
|
$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';
|
$title = ucfirst($TYPE). ' : Details for '.$LANGUAGES[$lang].' Doc';
|
||||||
|
|
||||||
$graph = new PieGraph(530,300);
|
$graph = new PieGraph(530,300);
|
||||||
$graph->SetShadow();
|
$graph->SetShadow();
|
||||||
|
|
||||||
$graph->title->Set($title);
|
$graph->title->Set($title);
|
||||||
$graph->title->Align('left');
|
$graph->title->Align('left');
|
||||||
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
||||||
@ -86,7 +88,9 @@ function generation_image($TYPE, $lang) {
|
|||||||
|
|
||||||
$p1 = new PiePlot3D($data);
|
$p1 = new PiePlot3D($data);
|
||||||
$p1->SetSliceColors(array("#68d888", "#ff6347", "#eee8aa", "#dcdcdc", "#f4a460"));
|
$p1->SetSliceColors(array("#68d888", "#ff6347", "#eee8aa", "#dcdcdc", "#f4a460"));
|
||||||
$p1->ExplodeAll();
|
if ($noExplode != 1) {
|
||||||
|
$p1->ExplodeAll();
|
||||||
|
}
|
||||||
$p1->SetCenter(0.35,0.55);
|
$p1->SetCenter(0.35,0.55);
|
||||||
$p1->value->Show(false);
|
$p1->value->Show(false);
|
||||||
|
|
||||||
|
@ -266,7 +266,9 @@ function do_revcheck($dir = '') {
|
|||||||
if (
|
if (
|
||||||
(!is_dir($DOCS . 'en' . $dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' )
|
(!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)
|
|| ($file == "functions.xml" && strpos($dir, '/reference') !== false)
|
||||||
|| $dir == '/chmonly') {
|
|| $dir == '/chmonly'
|
||||||
|
|| $file == 'contributors.ent' || $file == 'contributors.xml'
|
||||||
|
|| ($dir == '/appendices' && $file == 'reserved.constants.xml')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user