[GRASSweb-list] scott: web/devel i18n.inc, 1.16, 1.17 i18n_stats.inc, 1.16, 1.17

grass at intevation.de grass at intevation.de
Thu Jul 27 20:16:06 EDT 2006


Author: scott

Update of /grassrepository/web/devel
In directory doto:/tmp/cvs-serv27007

Modified Files:
	i18n.inc i18n_stats.inc 
Log Message:
language and formatting cleanup

Index: i18n.inc
===================================================================
RCS file: /grassrepository/web/devel/i18n.inc,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- i18n.inc	12 Jun 2006 19:21:59 -0000	1.16
+++ i18n.inc	28 Jul 2006 00:16:04 -0000	1.17
@@ -7,13 +7,13 @@
 <a name="translations"></a>
 <h3>The idea</h3>
 
-The great interest in GRASS suggests to translate GRASS messages to
-other languages than english. The "infrastructure" to
+The great worldwide interest in GRASS suggests value in translating GRASS messages to
+languages other than english. The "infrastructure" to
 support single-byte as well as multi-byte character sets was implemented
 (based on <a href="http://www.foss4g.org/">the FOSS4G efforts</a>). 
 
 <P>
-The GRASS Development Team is seeking for translators.
+The GRASS Development Team is seeking translators.
 Please subscribe to the dedicated mailing list at
 <p>
 &nbsp;&nbsp;&nbsp;&nbsp;
@@ -65,7 +65,7 @@
 &nbsp;&nbsp;&nbsp;&nbsp;Translation <a href="http://freegis.org/cgi-bin/viewcvs.cgi/grass6/locale/README?rev=HEAD&content-type=text/vnd.viewcvs-markup">README</a>
 <P>
 
-Do change to a certain LOCALE (if the system doesn't do it for you or
+To change to a certain LOCALE (if the system doesn't do it for you or
 for exploring other languages), do the following steps:
 
 <small>

Index: i18n_stats.inc
===================================================================
RCS file: /grassrepository/web/devel/i18n_stats.inc,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- i18n_stats.inc	29 May 2006 12:44:06 -0000	1.16
+++ i18n_stats.inc	28 Jul 2006 00:16:04 -0000	1.17
@@ -5,10 +5,11 @@
 
 //------------------------------------------------------------------------
 // function zur Erstellung der tabellen
+// function to create the tables
 function generate_table($file) {
 	
 	$last_modified = filemtime($file);
-	// einlesen der Datei
+	// einlesen der Datei - read in data
 	$array = file($file);
 	
 	// read in the iso-table
@@ -20,7 +21,7 @@
 	$array_iso1 = array();
 	foreach($array_iso as $id => $value) {
 		$array_iso1 = explode("\"", $value);
-		// neue arrays schreiben
+		// neue arrays schreiben - write new arrays
 		array_push($array_iso2, $array_iso1[7]);
 		array_push($array_iso3, $array_iso1[1]);
 	}
@@ -42,8 +43,10 @@
 	$arr5 = array();
 	foreach($array as $lines => $value) {
 		// array an Leerzeichen unterteilen
+		// space delimited array
 		$split = explode(" ", $value);
 		// neues Array jeweils für die einzelnen Spalten schreiben
+		// write new array for each column
 		array_push($arr2, $split[0]);
 		array_push($arr3, $split[1]);
 		array_push($arr4, $split[4]);
@@ -51,8 +54,10 @@
 	}
 	
 	// Sortieren der Spalte 2 
+	// sort by split 2 ?
 	arsort($arr3, SORT_ASC);
 	// ausgabe in tabelle basteln
+	// output table (?)
 	foreach($arr3 as $names => $values) {
 		$split2 = explode("_", $arr2[$names]);
 		$split3 = explode(".", $split2[1]);
@@ -88,15 +93,16 @@
 
 <hr>
 <a name="statistics"></a>
-<h2>Statistics of current GRASS internationalization (i18N) status</h1>
+<h2>Statistics of current GRASS internationalization (i18N) status</h2>
 
 The table is ordered by number of translated messages per language.
-The two characters code indicating the language is based on Alpha-2 code of
+The two character codes indicate the language, based on the Alpha-2 code of
 <a href="http://www.loc.gov/standards/iso639-2/englangn.html">ISO 639-1</a>.
 For download of a currently sleeping translation, please either get the
 file directly from the GRASS-CVS or see above.
 <?php
 // ausgabe in HTML-Tabelle durch Funktion generate_table()
+// output in HTML table through function generate_table()
 echo "<h2>GRASSLIBS</h2>\n";
 generate_table($file_libs);
 





More information about the grass-web mailing list