[evolvis-commits] r6516: - A bugfix and new translations for timeadd.php

papel at evolvis.org papel at evolvis.org
Wed Apr 7 13:04:59 CEST 2010


Author: papel
Date: 2010-04-07 11:04:59 +0000 (Wed, 07 Apr 2010)
New Revision: 6516

Modified:
   trunk/gforge_base/gforge-4.8.1+evolvis/translations/de.po
   trunk/gforge_base/gforge-4.8.1+evolvis/www/reporting/timeadd.php
Log:
- A bugfix and new translations for timeadd.php

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/translations/de.po
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/translations/de.po	2010-04-07 09:40:51 UTC (rev 6515)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/translations/de.po	2010-04-07 11:04:59 UTC (rev 6516)
@@ -13248,3 +13248,7 @@
 msgid "Time tracking list"
 msgstr "Zeiterfassungsliste"
 
+#: www/reporting/timeadd.php:241
+msgid "Change week"
+msgstr "Woche wechseln"
+

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/www/reporting/timeadd.php
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/www/reporting/timeadd.php	2010-04-07 09:40:51 UTC (rev 6515)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/www/reporting/timeadd.php	2010-04-07 11:04:59 UTC (rev 6516)
@@ -85,7 +85,7 @@
 	    } elseif (getStringFromRequest('add')) {
 		$days_adjust = getIntFromRequest('days_adjust');
 
-		if ($project_task_id && $week && $days_adjust && $time_code && $hours) {
+		if ($project_task_id && $week && $time_code && $hours) { # && $days_adjust has always a valid number. No need to prove.
 
 			//$date_list = split('[- :]',$report_date,5);
 			//$report_date = mktime($date_list[3],$date_list[4],0,$date_list[1],$date_list[2],$date_list[0]);
@@ -99,7 +99,7 @@
 				$feedback.=_('Successfully Added');
 			}
 			} else {
-			echo "INTERNAL ERROR: add: $project_task_id && $week && $days_adjust && $time_code && $hours";
+			#echo "INTERNAL ERROR: add: $project_task_id && $week && $days_adjust && $time_code && $hours";
 			exit_error('Error',_('All Fields Are Required.'));
 			}
 		
@@ -125,17 +125,7 @@
 
 if ($week) {
 	$group_project_id = getStringFromRequest('group_project_id');
-
-	/* Maybe reactivate later!!!!!!:
-	if($group_project_id_==0){$group_project_id_=$_GET['group_project_id_'];} 
-	if($group_id_==0){$group_id_=$_GET['group_id_'];}
 	
-	report_header(_('Time tracking'), $group_project_id_, $group_id_);
-	
-	$group_project_id_ = 0;
-	$group_id_=0; */
-	#if($_GET['submit']==_('Next')) { $group_project_id = ""; }
-	
 	report_header(_('Time tracking'));
 	
 	if (!$group_project_id) {
@@ -238,7 +228,7 @@
 </table>
 </form>
 <p>
-<h3>Change Week</h3>
+<h3><? echo _('Change week') ?></h3>
 <p>
 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>"
 	method="get" /><?php echo report_weeks_box($report,'week'); ?><input




More information about the evolvis-commits mailing list