[GRASS-SVN] r48657 - grass-web/trunk/devel
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 6 03:16:37 EDT 2011
Author: neteler
Date: 2011-10-06 00:16:37 -0700 (Thu, 06 Oct 2011)
New Revision: 48657
Modified:
grass-web/trunk/devel/i18n_stats.inc
Log:
lucadelu: fix #1458
Modified: grass-web/trunk/devel/i18n_stats.inc
===================================================================
--- grass-web/trunk/devel/i18n_stats.inc 2011-10-06 06:31:45 UTC (rev 48656)
+++ grass-web/trunk/devel/i18n_stats.inc 2011-10-06 07:16:37 UTC (rev 48657)
@@ -46,12 +46,23 @@
// 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]);
- array_push($arr5, $split[7]);
+ if (count($split) == 10) {
+ array_push($arr4, $split[4]);
+ array_push($arr5, $split[7]);
+ } else {
+ if ($split[5] == "untranslated"){
+ array_push($arr4, "0");
+ array_push($arr5, $split[4]);
+ } else {
+ array_push($arr4, $split[4]);
+ array_push($arr5, "0");
+ }
+ }
}
// Sortieren der Spalte 2
More information about the grass-commit
mailing list