mirror of
https://github.com/php/web-doc.git
synced 2025-08-10 02:56:24 +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);
|
||||
$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)) {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user