[evolvis-commits] r18431: small-fixes pending merges:↵ Thorsten Glaser 2012-05-24 in fact, CSVs should use a consistent language/encoding/etc.↵ Thorsten Glaser 2012-05-24 date format in CSV should not be subject to gettext translation

mirabilos at evolvis.org mirabilos at evolvis.org
Thu May 24 10:35:14 CEST 2012


Author: mirabilos
Date: 2012-05-24 10:35:13 +0200 (Thu, 24 May 2012)
New Revision: 18431

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/tracker/downloadcsv.php
Log:
small-fixes pending merges:
  Thorsten Glaser 2012-05-24 in fact, CSVs should use a consistent language/encoding/etc.
    Thorsten Glaser 2012-05-24 date format in CSV should not be subject to gettext translation

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/tracker/downloadcsv.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/tracker/downloadcsv.php	2012-05-24 08:35:09 UTC (rev 18430)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/tracker/downloadcsv.php	2012-05-24 08:35:13 UTC (rev 18431)
@@ -20,6 +20,8 @@
 
 require_once $gfcommon.'tracker/ArtifactFactory.class.php';
 
+setup_gettext_from_langname('English');
+
 $date = date('Y-m-d');
 
 sysdebug_off('Content-type: text/csv');
@@ -60,9 +62,9 @@
 
 for ($i=0; $i<count($at_arr); $i++) {
 
-	$open_date   = $at_arr[$i]->getOpenDate() ? date(_('Y-m-d H:i'),$at_arr[$i]->getOpenDate()) : '';
-	$update_date = $at_arr[$i]->getLastModifiedDate() ? date(_('Y-m-d H:i'),$at_arr[$i]->getLastModifiedDate()) : '';
-	$close_date  = $at_arr[$i]->getCloseDate()? date(_('Y-m-d H:i'),$at_arr[$i]->getCloseDate()): '';
+	$open_date   = $at_arr[$i]->getOpenDate() ? date('Y-m-d H:i',$at_arr[$i]->getOpenDate()) : '';
+	$update_date = $at_arr[$i]->getLastModifiedDate() ? date('Y-m-d H:i',$at_arr[$i]->getLastModifiedDate()) : '';
+	$close_date  = $at_arr[$i]->getCloseDate()? date('Y-m-d H:i',$at_arr[$i]->getCloseDate()): '';
 
 	echo "\n".$at_arr[$i]->getID().';'.
 		$at_arr[$i]->getStatusID().';"'.
@@ -94,5 +96,3 @@
 	$value = str_replace('"', '""', $value);
 	return $value;
 }
-
-?>



More information about the evolvis-commits mailing list