r21037 - htdocs/branches/beta - Fixes for validation of sizing page.

Cristian Marchi cmarchi at code.gnucash.org
Sun Jul 31 09:43:55 EDT 2011


Author: cmarchi
Date: 2011-07-31 09:43:55 -0400 (Sun, 31 Jul 2011)
New Revision: 21037
Trac: http://svn.gnucash.org/trac/changeset/21037

Modified:
   htdocs/branches/beta/sizing.phtml
Log:
Fixes for validation of sizing page.

Modified: htdocs/branches/beta/sizing.phtml
===================================================================
--- htdocs/branches/beta/sizing.phtml	2011-07-31 13:35:55 UTC (rev 21036)
+++ htdocs/branches/beta/sizing.phtml	2011-07-31 13:43:55 UTC (rev 21037)
@@ -17,7 +17,7 @@
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> currently consists of over a third of a million lines of code spread over more than a thousand files.  It has been translated into twenty-three languages and credits over 139 authors and contributors.");?>
 </p>
 <p class="center">
-<img alt="[code size graph]" src="<?=$top_dir?>/images/sizing-graph.png" width="640" height="480">
+<img alt="[code size graph]" src="<?=$top_dir?>/images/sizing-graph.png" width="640" height="480" />
 </p>
 <p class="justify">
 <?php echo T_("If you've had trouble swimming through that mass of source code, think of it this way: printed out on paper, and bound into volumes, it would amount to several dozen copies of Tolstoy's \"War and Peace\", roughly a bookshelf-width's worth of source code.");?>
@@ -34,9 +34,8 @@
 <p class="justify">
 <?php echo T_("Note also that KLOC's are not a good metric of programmer productivity, nor even that <code>wc</code> is a good way of counting KLOC's.  Much better measures are complexity metrics, which, for example, count the number and size of if-then-else blocks, or the number and size of all blocks, or the number of math operators per statement.  Maybe someday we'll run one of those tools on this code. For now, this is what we have.  On the other hand, we've attempted to count only those files that contain human-edited code, that is, files that are directly edited by humans.  The point of doing this is to avoid artificially inflating the KLOC counts by counting automatically generated code (which is why the glade files are not counted: they are large and automatically generated).");?>
 </p>
-<p>
 <div class="TABLE">
-<p><b><?php echo T_("Table 1.  Historical Development Stats");?></B></p>
+<p><b><?php echo T_("Table 1.  Historical Development Stats");?></b></p>
 <table border="1" class="CALSTABLE">
 <thead>
 <tr>
@@ -124,7 +123,7 @@
 <td>1</td>
 <td>7</td>
 </tr>
-<!--      ------------            -->
+<!--                 -->
 <tr>
 <td>gnucash-1.1.15 Aug 98</td>
 <td>24 files (6.2+1.5)</td>
@@ -145,7 +144,7 @@
 <td>1 (0.17)</td>
 <td>25</td>
 </tr>
-<!--         ---------------------                 -->
+<!--                          -->
 <tr>
 <td>gnucash-1.2.2 Aug 99</td>
 <td>41 files (10.2+3.6)</td>
@@ -166,7 +165,7 @@
 <td>3 (0.54)</td>
 <td>41</td>
 </tr>
-<!--          ----------------  ----              -->
+<!--                        -->
 <tr>
 <td>gnucash-1.3.6 April 2000</td>
 <td>41 files (12.9+4.0)</td>
@@ -187,7 +186,7 @@
 <td>5 (4.3) </td>
 <td>61</td>
 </tr>
-<!--         ----------------                     -->
+<!--                              -->
 <tr>
 <td>gnucash-1.4.6 Sept 2000</td>
 <td>43 files (13.0+3.6)</td>
@@ -208,7 +207,7 @@
 <td>7 (6.0)</td>
 <td>82</td>
 </tr>
-<!--         --------------------                 -->
+<!--                        -->
 <tr>
 <td>gnucash-1.4.12 April 2001</td>
 <td>43 files (13.1+3.6)</td>
@@ -229,7 +228,7 @@
 <td>12 (17.8)</td>
 <td>97</td>
 </tr>
-<!--        -------------                         -->
+<!--                            -->
 <tr>
 <td>gnucash-1.5.2 Sept 2000</td>
 <td>46 files (14.9+3.7)</td>
@@ -250,7 +249,7 @@
 <td>8 (7.8)</td>
 <td>89</td>
 </tr>
-<!--                 -------------                -->
+<!--                          -->
 <tr>
 <td>gnucash-1.6.0 June 2001</td>
 <td>139 files (42.8+8.3)</td>
@@ -276,7 +275,7 @@
 <td>gnucash-1.7.2 November 2002</td>
 <td>104 files (28.7+7.8+3.3)</td>
 <td>89 files (30.0+3.3)</td>
-<td>34 files (5.2+2.0) <hr> 29 files (10.5+1.2)</td>
+<td>34 files (5.2+2.0) <hr></hr> 29 files (10.5+1.2)</td>
 <td>17 files (9.4+0.7)</td>
 <td>-</td>
 <td>143 files (56.0+4.7+0.9)</td>
@@ -297,7 +296,7 @@
 <td>gnucash-1.8.4 June 2003</td>
 <td>100 files (29.7+8.3+3.4)</td>
 <td>89 files (30.1+3.3)</td>
-<td>35 files (5.3+2.0) <hr> 31 files (10.7+1.2)</td>
+<td>35 files (5.3+2.0) <hr></hr> 31 files (10.7+1.2)</td>
 <td>17 files (10.2+0.8)</td>
 <td>-</td>
 <td>151 files (58.7+5.1+1.1)</td>
@@ -307,98 +306,100 @@
 <td>17 files (4.1)</td>
 <td>98 files (21.5+2.0+5.1)</td>
 <td>76 files (8.6+0.2+0.7)</td>
-<td>24 files (13.8) <hr> 199 files (80.3)</td>
+<td>24 files (13.8) <hr></hr> 199 files (80.3)</td>
 <td>69 files (14.3)</td>
 <td>1115 files (385.5)</td>
 <td>23 (62.4)</td>
 <td>139</td>
 </tr>
-</TBODY ></TABLE ></DIV >
+</tbody></table ></div>
 
 <p class="justify">
-<?php echo T_("Each cell displays the following:");
+<?php echo T_("Each cell displays the following:");?>
+</p>
     
-echo T_("number of *c and *.h and *.scm files (KLOCS in *.c + KLOCS in *.h + KLOCS in *.scm).  If there are no *.scm files in the directory, then only (KLOCS in *.c + KLOCS in *.h) are displayed.  If there is only one number in the parenthesis, it is the approriate KLOC count for that statistic.");?>
+<p class="justify">
+<?php echo T_("number of *c and *.h and *.scm files (KLOCS in *.c + KLOCS in *.h + KLOCS in *.scm).  If there are no *.scm files in the directory, then only (KLOCS in *.c + KLOCS in *.h) are displayed.  If there is only one number in the parenthesis, it is the approriate KLOC count for that statistic.");?>
+</p>
 
-</p>
 <p class="justify">
 <?php echo T_("where KLOC == kilo-lines-of-code, as reported by <code>wc</code>. As noted above, wc is not a terribly good code metric, but its what we have handy.");?>
 </p>
 
-<b><?php echo T_("Table Column Legend");?></b><br><br>
+<b><?php echo T_("Table Column Legend");?></b><br></br><br></br>
     <p></p>
  <dl>
-    <dt><b>engine</B></dt>
+    <dt><b>engine</b></dt>
     <dd><?php echo T_("Contents of the src/engine and the include directories. The engine was split out from the motif code in version 1.1. The data storage backend (file-io, sql) was split out in the course of version 1.5");?>
 	<p></p>
         </dd>
-    <dt><b>backend</B></dt>
+    <dt><b>backend</b></dt>
     <dd><?php echo T_("Contents of the src/backend directory (version 1.7 and later) or of src/engine/file, src/engine/sql (version 1.6 and earlier)");?>
 	<p></p>
         </dd>
-    <dt><b>register</B></dt>
+    <dt><b>register</b></dt>
     <dd><?php echo T_("Contents of the src/register directory (version 1.6 and earlier) or src/register/register-core (version 1.7 and later).  The register was split out as a separate component from the motif code in version 1.1. As can be seen from the stats, the register code has been fairly stable. At version 1.7 and later, this cell shows a second count: the number of lines of code in src/register/register-gnome (previously counted as part of gnome)");?>
 	<p></p>
         </dd>
-    <dt><b>ledger</B></dt>
+    <dt><b>ledger</b></dt>
     <dd><?php echo T_("*.c, *.h files in the src directory only (version 1.6 and earlier) or src/register/ledger-core (version 1.7 and later)");?>
 	<p></p>
     </dd>
-    <dt><b>motif</B></dt>
+    <dt><b>motif</b></dt>
     <dd><?php echo T_("Contents of the src/motif directory (version 1.2 and earlier).  The motif version of the code was discontinued after version 1.2, after most of the non-gui code was moved to either the engine, the register or the ledger.");?>
 	<p></p>
     </dd>
-    <dt><b>gnome</B></dt>
+    <dt><b>gnome</b></dt>
     <dd><?php echo T_("Contents of src/gnome plus src/register/gnome (version 1.6 and earlier). For version 1.7 and later, this consists of src/gnome, src/gnome-search and src/gnome-util");?>
 	<p></p>
     </dd>
 
-    <dt><b><?php echo T_("misc app");?></B></dt>
+    <dt><b><?php echo T_("misc app");?></b></dt>
     <dd><?php echo T_("Contents of miscellanous application-related directories (version 1.7 and later): src/app-file, src/app-utils, src/calculation, src/core-utils, src/gnc-module, src/network-utils, src/tax/us");?>
 	<p></p>
     </dd>
 
-    <dt><b>import-export</B></dt>
+    <dt><b>import-export</b></dt>
     <dd><?php echo T_("Code to import and export various file formats: contents of the src/import-export directory.");?>
 	<p></p>
      </dd>
 
-    <dt><b>reports</B></dt>
+    <dt><b>reports</b></dt>
     <dd><?php echo T_("Code to generate reports and graphs: contents of the src/reports directory.");?>
 	<p></p>
      </dd>
 
-    <dt><b>scheme</B></dt>
+    <dt><b>scheme</b></dt>
     <dd><?php echo T_("scheme and guile code in directories src/scm plus src/guile (version 1.6 and earlier). In version 1.7 and later, much of this code went into reports, import/export, and into indiovidual modules; thus only miscellaneous code remains.");?>
 	<p></p>
     </dd>
 
-    <dt><b>business</B></dt>
+    <dt><b>business</b></dt>
     <dd><?php echo T_("Code to add small-business features: contents of the src/business directory.");?>
 	<p></p>
      </dd>
 
-    <dt><b>test</B></dt>
+    <dt><b>test</b></dt>
     <dd><?php echo T_("Code to peform automated regression tests: contents of the src/*/test directories.");?>
 	<p></p>
      </dd>
 
-    <dt><b>docs</B></dt>
+    <dt><b>docs</b></dt>
     <dd><?php echo T_("English-language-only user documentation, including on-line help and manual (html, sgml or xml). For version 1.8.4 and later, the number below the bar counts the translated, non-english docs (currently de, es, fr, pt_PT).  Both of these numbers are somewhat hard to count, because of fairly large format churns, and multiple competing versions.");?>
 	<p></p>
     </dd>
     
-    <dt><b><?php echo T_("internal txt");?></B></dt>
+    <dt><b><?php echo T_("internal txt");?></b></dt>
     <dd><?php echo T_("The number of design documents and README files aimed at developers. This includes *.txt files, *.texinfo files and README.* files in all subdirectories.  For version 1.7 and later, only those in the src subdirectory are counted (leaving out some half-dozen scattered elsewhere)");?>
 	<p></p>
      </dd>
 
-    <dt><b><?php echo T_("Languages");?></B></dt>
+    <dt><b><?php echo T_("Languages");?></b></dt>
     <dd><?php echo T_("The number of languages that the application messages have been translated to (the number of <tt>po/*.po</tt> files). In parenthesis, the number of messages in the message files (<tt>grep msgstr po/*.po |wc</tt>), in thousands.");?>
 	<p></p>
     </dd>
     
-    <dt><b><?php echo T_("Author Credits");?></B></dt>
+    <dt><b><?php echo T_("Author Credits");?></b></dt>
     <dd><?php echo T_("The number of people credited in the AUTHORS file (version 1.6 and later) or the README file (earlier versions).  These include lead developers, patch submitters and national-language translators.  This includes additional credits listed in the gnucash-docs/AUTHORS file that are not listed in the main gnucash/AUTHORS file.");?>
 	<p></p>
     </dd>



More information about the gnucash-changes mailing list