function printCategoriesStatistic()
{
    list($total, $type, $unpub) = getNewsPagesStatistic("categories");
    printf(ngettext('(<strong>%1$u</strong> category)', '(<strong>%1$u</strong> categories)', $total), $total);
}
    }
    ?>
	</li>
	<li>
		<?php 
    list($total, $type, $unpub) = getNewsPagesStatistic("news");
    if (empty($unpub)) {
        printf(gettext('<strong>%1$u</strong> News articles'), $total);
    } else {
        printf(gettext('<strong>%1$u</strong> News articles (%2$u un-published)'), $total, $unpub);
    }
    ?>
	</li>
	<li>
		<?php 
    list($total, $type, $unpub) = getNewsPagesStatistic("categories");
    printf(gettext('<strong>%1$u</strong> Categories'), $total);
    ?>
	</li>
<?php 
}
?>
<li><nobr><?php 
printf(gettext("Albums folder size: <strong>%s</strong>"), byteConvert(gallerystats_filesize_r(ALBUM_FOLDER_SERVERPATH)));
?>
</nobr></li>
<li><nobr><?php 
printf(gettext("Image cache size: <strong>%s</strong>"), byteConvert(gallerystats_filesize_r(SERVERPATH . '/' . CACHEFOLDER)));
?>
</nobr></li>
<li><nobr><?php 
예제 #3
0
function printCategoriesStatistic()
{
    list($total, $type, $unpub) = getNewsPagesStatistic("categories");
    if (empty($unpub)) {
        printf(ngettext('<strong>%1$u</strong> category', '<strong>%1$u</strong> categories', $total), $total);
    } else {
        printf(ngettext('<strong>%1$u</strong> category (%2$u un-published)', '<strong>%1$u</strong> categories (%2$u un-published)', $total), $total, $unpub);
    }
}