gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/common/reporting report_utils.php,1.3,1.4


From: gsmet
Subject: [Gforge-commits] gforge/common/reporting report_utils.php,1.3,1.4
Date: Fri, 06 Aug 2004 03:33:53 -0500

Update of /cvsroot/gforge/gforge/common/reporting
In directory db.perdue.net:/tmp/cvs-serv31560/common/reporting

Modified Files:
        report_utils.php 
Log Message:
reporting localization effort

Index: report_utils.php
===================================================================
RCS file: /cvsroot/gforge/gforge/common/reporting/report_utils.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- report_utils.php    4 Aug 2004 16:50:44 -0000       1.3
+++ report_utils.php    6 Aug 2004 08:33:45 -0000       1.4
@@ -54,12 +54,12 @@
 }
 
 function report_weeks_box($Report, $name='week', $selected=false) {
-       global $sys_datefmt;
+       global $sys_shortdatefmt, $Language;
        $arr =& $Report->getWeekStartArr();
 
        $arr2=array();
        for ($i=0; $i<count($arr); $i++) {
-               $arr2[$i]=date('Y-m-d',$arr[$i]) .' to '. 
date('Y-m-d',($arr[$i]+6*24*60*60));
+               $arr2[$i]=date($sys_shortdatefmt, $arr[$i]) .' 
'.$Language->getText('general', 'to').' '. date($sys_shortdatefmt, 
($arr[$i]+6*24*60*60));
        }
 
        return html_build_select_box_from_arrays 
($arr,$arr2,$name,$selected,false);
@@ -87,12 +87,12 @@
 }
 
 function report_months_box($Report, $name='month', $selected=false) {
-       global $sys_datefmt;
+       global $Language;
        $arr =& $Report->getMonthStartArr();
 
        $arr2=array();
        for ($i=0; $i<count($arr); $i++) {
-               $arr2[$i]=date('Y-m',$arr[$i]);
+               $arr2[$i]=date($Language->getText('calendar', 
'monthdatefmt'),$arr[$i]);
        }
 
        return html_build_select_box_from_arrays 
($arr,$arr2,$name,$selected,false);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]