[evolvis-commits] r8357: localization↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 16:40:01 CET 2011


Author: mirabilos
Date: 2011-02-24 16:40:01 +0100 (Thu, 24 Feb 2011)
New Revision: 8357

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectCategory.class
   trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroup.class
   trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class
   trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTask.class
   trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTaskFactory.class
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/Layout.class
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Italian.tab
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/source.php
Log:
localization


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectCategory.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectCategory.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectCategory.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -80,17 +80,19 @@
 	 *  @return	boolean success.
 	 */
 	function create($name) {
+
+		global $Language;
 		//
 		//	data validation
 		//
 		if (!$name) {
-			$this->setError('ProjectCategory: name and assignee are Required');
+			$this->setError($Language->getText('pm_projectcategory','required_fields'));
 			return false;
 		}
 
 		$perm =& $this->ProjectGroup->Group->getPermission (session_get_user());
 		if (!$perm || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 		$sql="INSERT INTO project_category (group_project_id,category_name) 
@@ -169,11 +171,11 @@
 	function update($name) {
 		$perm =& $this->ProjectGroup->Group->getPermission (session_get_user());
 		if (!$perm || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 		if (!$name) {
-			$this->setError('Missing Params');
+			$this->setMissingParamsError();
 			return false;
 		}   
 		$sql="UPDATE project_category 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroup.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroup.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroup.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -74,7 +74,7 @@
 				$perm =& $this->Group->getPermission( session_get_user() );
 
 				if (!$perm || !is_object($perm) || !$perm->isMember()) {
-					$this->setError('Permission Denied');
+					$this->setPermissionDeniedError();
 					$this->data_array = null;
 					return false;
 				}
@@ -94,23 +94,25 @@
 	 */
 	function create($project_name,$description,$is_public=1,$send_all_posts_to='') {
 
+		global $Language;
+		
 		if (strlen($project_name) < 3) {
-			$this->setError('ProjectGroup Name Must Be At Least 3 Characters');
+			$this->setError($Language->getText('pm_projectgroup','error_min_name_lenght'));
 			return false;
 		}
 		if (strlen($description) < 10) {
-			$this->setError('ProjectGroup Description Must Be At Least 10 Characters');
+			$this->setError($Language->getText('pm_projectgroup','error_min_desc_lenght'));
 			return false;
 		}
 		if ($send_all_posts_to && !validate_email($send_all_posts_to)) {
-			$this->setError('Invalid Email Address');
+			$this->setInvalidEmailError();
 			return false;
 		}
 
 		$perm =& $this->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 
@@ -272,23 +274,24 @@
 	 */
 	function update($project_name,$description,$is_public=1,$send_all_posts_to='') {
 
+		global $Language;
 		if (strlen($project_name) < 3) {
-			$this->setError('ProjectGroup Name Must Be At Least 3 Characters');
+			$this->setError($Language->getText('pm_projectgroup','error_min_name_lenght'));
 			return false;
 		}
 		if (strlen($description) < 10) {
-			$this->setError('ProjectGroup Description Must Be At Least 10 Characters');
+			$this->setError($Language->getText('pm_projectgroup','error_min_desc_lenght'));
 			return false;
 		}
 		if ($send_all_posts_to && !validate_email($send_all_posts_to)) {
-			$this->setError('Invalid Email Address');
+			$this->setInvalidEmailError();
 			return false;
 		}
 
 		$perm =& $this->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectGroupFactory.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -71,6 +71,8 @@
 	 *	@return	array	The array of ProjectGroups.
 	 */
 	function &getProjectGroups() {
+		
+		global $Language;
 		if ($this->projectGroups) {
 			return $this->projectGroups;
 		}
@@ -96,7 +98,7 @@
 		$rows = db_numrows($result);
 
 		if (!$result || $rows < 1) {
-			$this->setError('No ProjectGroups Found '.db_error());
+			$this->setError($Language->getText('pm_projectgroup','none_found').db_error());
 			return false;
 		} else {
 			while ($arr = db_fetch_array($result)) {

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTask.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTask.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTask.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -111,7 +111,7 @@
 		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 
@@ -337,7 +337,7 @@
 		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 //
@@ -369,7 +369,7 @@
 		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 
@@ -392,7 +392,7 @@
 		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 
@@ -489,8 +489,11 @@
 	 * @returns	boolean	success.
 	 */
 	function checkCircular($depend_on_id, $original_id) {
+		
+		global $Language;
+		
 		if ($depend_on_id == $original_id) {
-			$this->setError('Circular Dependency Detected');
+			$this->setError($Language->getText('pm_projecttask','circular_dependency').'Circular Dependency Detected');
 	 		return false;
 		}
 
@@ -661,7 +664,7 @@
 		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );
 
 		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {
-			$this->setError('Permission Denied');
+			$this->setPermissionDeniedError();
 			return false;
 		}
 
@@ -738,6 +741,9 @@
 	 *	@return	boolean	success.
 	 */
 	function sendNotice($first=false) {
+		
+		global $Language;
+		
 		$ids =& $this->getAssignedTo();
 
 		//
@@ -747,13 +753,15 @@
 			return true;
 		}
 
-		$body = "Task #". $this->getID() ." has been updated. ".
-			"\n\nProject: ". $this->ProjectGroup->Group->getPublicName() .
-			"\nSubproject: ". $this->ProjectGroup->getName() .
-			"\nSummary: ".util_unconvert_htmlspecialchars( $this->getSummary() ).
-			"\nComplete: ". $this->getPercentComplete() ."%".
-			"\nStatus: ". $this->getStatusName() .
-			"\n\nDescription: ". util_unconvert_htmlspecialchars( $this->getDetails() );
+		$body = stripcslashes($Language->getText('pm_projecttask','mail_notice',
+			array($this->getID(),
+			$this->ProjectGroup->Group->getPublicName(),
+			$this->ProjectGroup->getName(),
+			util_unconvert_htmlspecialchars( $this->getSummary() ),
+			$this->getPercentComplete(),
+			$this->getStatusName() ,
+			util_unconvert_htmlspecialchars( $this->getDetails())
+				)));
 
 		/*
 			Now get the followups to this task
@@ -763,21 +771,24 @@
 		$rows=db_numrows($result2);
 
 		if ($result2 && $rows > 0) {
-			$body .= "\n\nFollow-Ups:";
+			$body .= stripcslashes($Language->getText('pm_projecttask','mail_followups_title'));
 			for ($i=0; $i<$rows;$i++) {
 				$body .= "\n\n-------------------------------------------------------";
-				$body .= "\nDate: ". date($GLOBALS['sys_datefmt'],db_result($result2,$i,'postdate'));
-				$body .= "\nBy: ".db_result($result2,$i,'user_name');
-				$body .= "\n\nComment:\n".util_unconvert_htmlspecialchars(db_result($result2,$i,'body'));
+				$body .= stripcslashes($Language->getText('pm_projecttask','mail_followups_body', array(
+					date($GLOBALS['sys_datefmt'],db_result($result2,$i,'postdate')),
+					db_result($result2,$i,'user_name'),
+					util_unconvert_htmlspecialchars(db_result($result2,$i,'body')))
+					 ));
 			}
 		}
-		$body .= "\n\n-------------------------------------------------------".
-			"\nFor more info, visit:".
-			"\n\nhttp://$GLOBALS[sys_default_domain]/pm/task.php?func=detailtask&project_task_id=".
+		
+		$body .= stripcslashes("\n\n-------------------------------------------------------\n");
+		$body .= stripcslashes($Language->getText('pm_projecttask','mail_followups_footer'));
+		$body .=	"\n\nhttp://$GLOBALS[sys_default_domain]/pm/task.php?func=detailtask&project_task_id=".
 				$this->getID() ."&group_id=".
 				$this->ProjectGroup->Group->getID() ."&group_project_id=". $this->ProjectGroup->getID();
-
-		$subject="[Task #". $this->getID() .'] '.
+		
+		$subject="[".$Language->getText('pm_projecttask','mail_followups_subject'). $this->getID() .'] '.
 			util_unconvert_htmlspecialchars( $this->getSummary() );
 
 		util_handle_message(array_unique($ids),$subject,$body,$this->ProjectGroup->getSendAllPostsTo());

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTaskFactory.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTaskFactory.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/pm/ProjectTaskFactory.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -178,7 +178,7 @@
 			ORDER BY project_task_vw.".$this->order.(($this->order=='priority') ? ' DESC ':' ');
 
 //echo $sql;
-
+	
 		$result=db_query($sql,($this->max_rows),$this->offset);
 		$rows = db_numrows($result);
 		$this->fetched_rows=$rows;

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/Layout.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/Layout.class	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/Layout.class	2011-02-24 15:40:01 UTC (rev 8357)
@@ -327,9 +327,10 @@
 </table>
 <?php
 	global $sys_show_source;
+	global $Language;
 	if ($sys_show_source) {
 		global $SCRIPT_NAME;
-		print '<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '"> Show Source</a>';
+		print '<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '"> '.$Language->getText('source','show_source').' </a>';
 	}
 ?>
 
@@ -648,7 +649,7 @@
 	}
 
 	function searchBox() {
-		global $Language,$words,$forum_id,$group_id,$atid,$exact,$type_of_search;
+		global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
 
 		// if there is no search currently, set the default
 		if ( ! isset($type_of_search) ) {
@@ -674,8 +675,12 @@
 			}
 		} else if ($group_id && $forum_id) {
 			print '
-			<option value="forums"'.( $type_of_search == 'forums' ? ' selected="selected"' : '' ).'>This Forum</option>';
+			<OPTION value="forums"'.( $type_of_search == 'forums' ? ' SELECTED' : '' ).'>'.$Language->getText('searchbox','forum').'</OPTION>';
+		} else if ($group_id && $group_project_id) { 
+			print '
+			<option value="task"'. ( $type_of_search == 'tasks' ? ' selected' : '').'>'.$Language->getText('searchbox','task').'</option>';
 		}
+		
 		print '
 			<option value="soft"'.( $type_of_search == 'soft' ? ' selected="selected"' : '' ).'>'.$Language->getText('searchbox','softwaregroup').'</option>';
 		print '
@@ -702,6 +707,10 @@
 			print '
 			<input type="hidden" value="'.$atid.'" name="atid" />';
 		}
+		if ( isset($group_project_id) ){
+			print '
+			<input type="hidden" value="'.$group_project_id.'" name="group_project_id" />';
+		}
 		print '</td><td>';
 		print '
 		<input type="text" size="12" name="words" value="'.$words.'" />';

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php	2011-02-24 15:40:01 UTC (rev 8357)
@@ -193,6 +193,7 @@
  * @param		string	What to call the '100 row' defaults to none
  */
 function html_build_select_box_from_arrays ($vals,$texts,$select_name,$checked_val='xzxz',$show_100=true,$text_100='None') {
+	global $Language;
 	$return .= '
 		<select name="'.$select_name.'">';
 
@@ -226,7 +227,7 @@
 	//
 	if (!$checked_found && $checked_val != 'xzxz' && $checked_val && $checked_val != 100) {
 		$return .= '
-		<option value="'.$checked_val.'" selected="selected">No Change</option>';
+		<option value="'.$checked_val.'" selected="selected">'.$Language->getText('include_html','no_change').'</option>';
 	}
 	$return .= '
 		</select>';
@@ -257,6 +258,7 @@
  * @param		bool	Whether or not to show the '100 row'
  */
 function html_build_multiple_select_box ($result,$name,$checked_array,$size='8',$show_100=true) {
+	global $Language;
 	$checked_count=count($checked_array);
 	$return .= '
 		<select name="'.$name.'" multiple="multiple" size="'.$size.'">';
@@ -271,7 +273,7 @@
 				$return .= ' selected="selected"';
 			}
 		}
-		$return .= '>None</option>';
+		$return .= '>'.$Language->getText('include_html','none').'</option>';
 	}
 
 	$rows=db_numrows($result);
@@ -349,20 +351,21 @@
  * @param		bool	Whether to make 'No Change' selected.
  */
 function html_build_priority_select_box ($name='priority', $checked_val='5', $nochange=false) {
+	global $Language;
 ?>
 	<select name="<?php echo $name; ?>">
 <?php if($nochange) { ?>
-	<option value="100"<?php if ($nochange) {echo " selected=\"selected\"";} ?>>No Change</option>
+	<option value="100"<?php if ($nochange) {echo " selected=\"selected\"";} ?>><?php echo $Language->getText('include_html','no_change') ?></option>
 <?php }  ?>
-	<option value="1"<?php if ($checked_val=="1") {echo " selected=\"selected\"";} ?>>1 - Lowest</option>
+	<option value="1"<?php if ($checked_val=="1") {echo " selected=\"selected\"";} ?>>1 - <?php echo $Language->getText('include_html','priority_lowest') ?></option>
 	<option value="2"<?php if ($checked_val=="2") {echo " selected=\"selected\"";} ?>>2</option>
 	<option value="3"<?php if ($checked_val=="3") {echo " selected=\"selected\"";} ?>>3</option>
 	<option value="4"<?php if ($checked_val=="4") {echo " selected=\"selected\"";} ?>>4</option>
-	<option value="5"<?php if ($checked_val=="5") {echo " selected=\"selected\"";} ?>>5 - Medium</option>
+	<option value="5"<?php if ($checked_val=="5") {echo " selected=\"selected\"";} ?>>5 - <?php echo $Language->getText('include_html','priority_medium') ?></option>
 	<option value="6"<?php if ($checked_val=="6") {echo " selected=\"selected\"";} ?>>6</option>
 	<option value="7"<?php if ($checked_val=="7") {echo " selected=\"selected\"";} ?>>7</option>
 	<option value="8"<?php if ($checked_val=="8") {echo " selected=\"selected\"";} ?>>8</option>
-	<option value="9"<?php if ($checked_val=="9") {echo " selected=\"selected\"";} ?>>9 - Highest</option>
+	<option value="9"<?php if ($checked_val=="9") {echo " selected=\"selected\"";} ?>>9 - <?php echo $Language->getText('include_html','priority_highest') ?></option>
 	</select>
 <?php
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab	2011-02-24 15:40:01 UTC (rev 8357)
@@ -652,12 +652,45 @@
 pm	unassigned	Unassigned
 pm	any	Any
 pm_addtask	title	Add a new Task
-pm_admin	section	$1
 pm_admin	title	Task Manager: Administration
 pm_admin_change_status	section	Task Manager Administration
 pm_admin_change_status	title	Update Information
 pm_admin_projects	section	Task Manager Administration
 pm_admin_projects	title	Add Subprojects
+pm_admin_projects	project_inserted	Project Inserted
+pm_admin_projects	add_categories_title	Add Categories
+pm_admin_projects	project_inserted	Project Inserted 
+pm_admin_projects	category_inserted	Category Inserted
+pm_admin_projects	category_updated	Category Updated
+pm_admin_projects	updated_successfully	Updated Successfully ";
+pm_admin_projects	add_categories_title	Add Categories'
+pm_admin_projects	add_categories	Add Categories to
+pm_admin_projects	id	Id
+pm_admin_projects	no_categories	No categories defined
+pm_admin_projects	category_name	New Category Name
+pm_admin_projects	category_note	Once you add a category, it cannot be deleted
+pm_admin_projects	add_categories	Add Categories
+pm_admin_projects	modify_category	Modify an Category in
+pm_admin_projects	category_name	Category Name
+pm_admin_projects	category_note2	It is not recommended that you change the artifact category name because other things are dependent upon it. When you change the category name, all related items will be changed to the new name.</font></strong>
+pm_admin_projects	add_subprojects	Add Projects
+pm_admin_projects	existing_subprojects	Existing Subprojects
+pm_admin_projects	no_subprojects	No Subprojects in this group	
+pm_admin_projects	projects_intro	Add a new project to the Project/Task Manager. <strong>This is different than adding a task to a project.</strong>
+pm_admin_projects	is_public	Is Public?	
+pm_admin_projects	project_name	New Project Name
+pm_admin_projects	description	Description
+pm_admin_projects	send_updates	Send All Updates To
+pm_admin_projects	change_project_title	Change Project/Task Manager Status
+pm_admin_projects	change_project_intro	You can modify an existing Project using this form. Please note that private projects can still be viewed by members of your project, but not the general public.<p>
+pm_admin_projects	add_edit_categories	Add/Edit Categories
+pm_admin_projects	admin_title	Project/Task Manager Administration
+pm_admin_projects	add_project	Add A Project
+pm_admin_projects	add_project_intro	Add a project, which can contain a set of tasks. This is different than creating a new task.
+pm_admin_projects	no_projects_found	<h2>No Projects Found</h2><p>None found for this group. You may add new Projects using the "Add A Project" link above.
+pm_admin_projects	edit_update	Edit/Update Project
+pm_admin_projects	project_title	Title
+pm_admin_projects	add_categories_to	Add Categories To
 pm_browse_custom	section	Task Manager
 pm_browse_custom	title	Browse Custom Tasks
 pm_browse_my	section	Project $1 Task Manager
@@ -677,8 +710,33 @@
 pm_modtask	add_comment	Add A Comment
 pm_modtask	assignee	Assignee
 pm_modtask	sort_on	Sort On
-pm_reporting	section	Task Manager
 pm_reporting	title	Task Reporting System
+pm_reporting	aging_report	Aging Report
+pm_reporting	by_tech	Report by Technician
+pm_reporting	by_subproject	Report by Subproject
+pm_reporting	average_duration	Average duration for closed tasks (days)
+pm_reporting	started_tasks	Number of started tasks
+pm_reporting	not_completed	Number of tasks still not completed
+pm_reporting	tasks_by_category	Tasks By Category
+pm_reporting	open_tasks_by_category	Open Tasks By Category
+pm_reporting	all_tasks_by_category	All Tasks By Category
+pm_reporting	not_completed	Number of Tasks Still Not Completed
+pm_reporting	started_tasks	Number of Tasks Started
+pm_reporting	average_duration	Average Duration For Closed Tasks (days)
+pm_reporting	tasks_by_technician	Tasks By Technician
+pm_reporting	open_tasks_by_technician	Open Tasks By Technician
+pm_reporting	all_tasks_by_technician	All Tasks By Technician
+pm_reporting	report_note	Note that same task can be assigned to several technicians. Such task will be counted for each of them.</p>
+pm_projectgroup	error_min_name_lenght	Title Must Be At Least 5 Characters
+pm_projectgroup	error_min_desc_lenght	Document Description Must Be At Least 10 Characters
+pm_projectgroup	none_found	No ProjectGroups Found
+pm_projectcategory	required_fields	ProjectCategory: name and assignee are Required
+pm_projecttask	circular_dependency	Circular Dependency Detected'
+pm_projecttask	mail_notice			Task # $1 has been updated\n\nProject: $2\nSubproject: $3\nSummary: $4\nComplete: $5\nStatus: $6\n\nDescription: $7
+pm_projecttask	mail_followups_title	\n\nFollow-Ups
+pm_projecttask	mail_followups_body	\nDate: $1\nBy: $2\n\nComment:\n$3
+pm_projecttask	mail_followups_footer	For more info, visit:
+pm_projecttask	mail_followups_subject	Task #
 pm_include_grouphtml	project	Project
 pm_include_grouphtml	add_task	Add Task
 pm_include_grouphtml	browse_task	Browse Tasks
@@ -790,8 +848,6 @@
 project_filemodule_monitor	stop_monitor_body	Monitoring Has Been Stopped
 project_filemodule_monitor	start_monitor_title	Monitoring started
 project_filemodule_monitor	start_monitor_body	Monitoring Has Been Started
-
-
 projects	section	Project: $1
 projects	title	Summary
 register	title	New Project Registration
@@ -1017,3 +1073,22 @@
 calendar	invaliddateexplain	$1 is an invalid date.
 calendar	invalidtype	Invalid type
 calendar	invalidtypeexplain	Type is invalid.
+include_html	no_change	No Change
+include_html	none	None
+include_html	priority_medium	Medium
+include_html	priority_lowest	Lowest
+include_html	priority_highest	Highest
+include_toolreport	last_days	Last day(s)
+include_toolreport	last_weeks	Last week(s)
+include_toolreport	last_months	Last month(s)
+include_toolreport	last_years	Last year(s)
+include_toolreport	project_lifespan	Project lifespan
+include_toolreport	show	Show
+source	show_source	Show source
+source	source_of	Source of $1
+source	missing_file	Missing File Argument
+source	missing_file_text	A file must be specified for this page.
+source	invalid_argument	Invalid File Argument
+source	invalid_argument_text	The file argument is invalid.
+source	file_not_found	File Not Found
+source	file_not_found_text	Cannot find specified file to display.
\ No newline at end of file

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Italian.tab
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Italian.tab	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Italian.tab	2011-02-24 15:40:01 UTC (rev 8357)
@@ -14,6 +14,8 @@
 #  *		adding localization strings for forums
 #	* 2003-01-21 rspisser <reinhard at spisser.it>
 #	*		adding localization strings for my, diary, project_homepage
+#	* 2003-01-25 rspisser <reinhard at spisser.it>
+#  *		adding localization strings for pm
 #  */
 
 
@@ -480,7 +482,7 @@
 news_utils	readmore	<NOBR>Leggi/Scrivi messaggio</NOBR>
 pm	title	Gestore attività Sottoprogetti e Task
 pm	intro	Selezionare un sottoprogetto e puoi visualizzare/modificare e aggiungere attivit&agrave.
-pm	noprj	<H1>No Subprojects Found</H1><P><B>No subprojects have been set up, or you cannot view them.<P><FONT COLOR=RED>The Admin for this project will have to set up projects using the admin page</FONT></B>
+pm	noprj	<H1>Nessun sottoprogetto trovato</H1><P><B>Non è stato alcun sottoprogetto oppure non sei autorizzato a vedere alcuni sottoprogetti.<P><FONT COLOR=RED>L'amministratore del progetto dovrà creare dei sottoprogetti utilizzando la funzione di amministrazione</FONT></B>
 pm	category	Categoria
 pm	start_date	Data inizio
 pm	end_date	Data fine
@@ -494,7 +496,7 @@
 pm	status	Stato
 pm	view_calendar	Visualizza calendario
 pm	date_note		La data inizio e fine dell'attività devono essere superiori alle date di inizio delle attività dalle quali dipende <br/>altrimenti il sistema modificherà automaticamente le date.
-pm	task_id	Id Task
+pm	task_id	Id attività
 pm	dependent_note			Scegliere solo attività che devono essere completate prima che questa attività parte.
 pm	unassigned	Non assegn.
 pm	any	Tutti
@@ -505,9 +507,42 @@
 pm_admin	title	Task Manager: Administration
 pm_admin_change_status	section	Task Manager Administration
 pm_admin_change_status	title	Update Information
-pm_admin_projects	section	Task Manager Administration
-pm_admin_projects	title	Add Subprojects
 pm_browse_custom	section	Task Manager
+pm_admin_projects	section	Amministrazione attività
+pm_admin_projects	title	Aggiungi sottoprogetti
+pm_admin_projects	project_inserted	Progetto inserito
+pm_admin_projects	add_categories_title	Aggiungi categorie
+pm_admin_projects	project_inserted	Progetto inserito
+pm_admin_projects	category_inserted	Categoria inserita
+pm_admin_projects	category_updated	Categoria aggiornata
+pm_admin_projects	updated_successfully	Updated Successfully
+pm_admin_projects	add_categories	Aggiungi categorie a
+pm_admin_projects	id	Id
+pm_admin_projects	no_categories	Nessuna categoria definita
+pm_admin_projects	category_name	Nuovo nome categoria
+pm_admin_projects	category_note	Una volta inserita una categoria non può più essere cancellata.
+pm_admin_projects	add_categories	Aggiungi categorie
+pm_admin_projects	modify_category	Modifica una categoria in
+pm_admin_projects	category_name	Nome categoria
+pm_admin_projects	category_note2	Non è consigliato cambiare la categoria perchè altri elementi dipendono da questa categoria. Quando si cambia una categoria, tutti gli elementi relazionati verranno assegnati automaticamente al nuovo nome della nuova categoria.</font></strong>
+pm_admin_projects	add_subprojects	Aggiungi progetti
+pm_admin_projects	existing_subprojects	Sottoprogetti esistenti
+pm_admin_projects	no_subprojects	Nessun sottoprogetto in questo gruppo
+pm_admin_projects	projects_intro	Aggiungi un nuovo progetto. <strong>Questo è diverso che aggiungere una attività al progetto.</strong>
+pm_admin_projects	is_public	Progetto pubblico?
+pm_admin_projects	project_name	Nome progetto
+pm_admin_projects	description	Descrizione
+pm_admin_projects	send_updates	Invia tutti gli aggiornamenti a
+pm_admin_projects	change_project_title	Cambia stato di gestore attività
+pm_admin_projects	change_project_intro	Qui puoi cambiare un progetto. Nota che progetti privati possono essere visualizzati dai membri del progetto, ma non dagli altri.<p>
+pm_admin_projects	add_edit_categories	Aggiungi/modifica categorie
+pm_admin_projects	admin_title	Amministrazione Progetto/Attività
+pm_admin_projects	add_project	Aggiungi un progetto
+pm_admin_projects	add_project_intro	Aggiungi un progetto, che contiene un insieme di attivit&agrave. Questo è diverso che aggiungere una attività al progetto
+pm_admin_projects	no_projects_found	<h2>Nessun progetto trovato</h2><p>None found for this group. You may add new Projects using the "Add A Project" link above.
+pm_admin_projects	edit_update	Modifica/aggiorna progetto
+pm_admin_projects	project_title	Titolo
+pm_admin_projects	add_categories_to	Aggiungi categorie a
 pm_browse_custom	title	Browse Custom Tasks
 pm_browse_my	section	Project $1 Task Manager
 pm_browse_my	title	Browse My Tasks
@@ -524,8 +559,23 @@
 pm_modtask	submitted_by	Inserito da
 pm_modtask	original_comment	Commento originale
 pm_modtask	add_comment	Aggiungi un commento
-pm_reporting	section	Task Manager
-pm_reporting	title	Task Reporting System
+pm_reporting	title	Sistemi di reportistica per le attività
+pm_reporting	aging_report	Aging Report
+pm_reporting	by_tech	Report per tecnico
+pm_reporting	by_subproject	Report per sottoprogetto
+pm_reporting	average_duration	Average duration for closed tasks (days)
+pm_reporting	started_tasks	Numero di attività iniziate
+pm_reporting	not_completed	Numero di attività non ancora completate
+pm_reporting	tasks_by_category	Attività per categoria
+pm_reporting	open_tasks_by_category	Attività aperte per categoria
+pm_reporting	all_tasks_by_category	All Tasks By Category
+pm_reporting	not_completed	Number of Tasks Still Not Completed
+pm_reporting	started_tasks	Number of Tasks Started
+pm_reporting	average_duration	Average Duration For Closed Tasks (days)
+pm_reporting	tasks_by_technician	Tasks By Technician
+pm_reporting	open_tasks_by_technician	Open Tasks By Technician
+pm_reporting	all_tasks_by_technician	All Tasks By Technician
+pm_reporting	report_note	Note that same task can be assigned to several technicians. Such task will be counted for each of them.</p>
 pm_include_grouphtml	project	Progetto
 pm_include_grouphtml	add_task	Aggiungi attività
 pm_include_grouphtml	browse_task	Elenca attività
@@ -561,6 +611,16 @@
 pm_ganttpage	resolution	Risoluzione
 pm_ganttpage	size	Dimensioni
 pm_ganttpage	assignee	Assegnatario
+pm_projectgroup	error_min_name_lenght	Il titolo deve essere almeno di 5 caratteri
+pm_projectgroup	error_min_desc_lenght	La descrizione del documento deve essere almeno di 10 caratteri
+pm_projectgroup	none_found	No ProjectGroups Found
+pm_projectcategory	required_fields	ProjectCategory: name and assignee are Required
+pm_projecttask	circular_dependency	È stata rilevata una dipendenza circolare
+pm_projecttask	mail_notice			L'attività # $1 è stata aggiornata\n\nProgetto: $2\nSottoprogetto: $3\nSommario: $4\nPerc. Completo: $5\nStato: $6\n\nDescrizione: $7
+pm_projecttask	mail_followups_title	\n\\nCommenti
+pm_projecttask	mail_followups_body	\nData: $1\nDa: $2\n\nCommento:\n$3
+pm_projecttask	mail_followups_footer	Per maggiori informazioni, collegati a:
+pm_projecttask	mail_followups_subject	Attività #
 project_home	title	Informazioni progetto
 project_home	holding_note	NOTE: This project entry is maintained by the $1 staff. We are not the official site for this product. Additional copyright information may be found on this project's homepage.
 project_home	help_wanted	AIUTO RICHIESTO: Questo progetto sta cercando
@@ -722,3 +782,22 @@
 searchbox	forum	Questo forum
 searchbox	task	Attività
 survey	survey_not_found	Sondaggio non trovato
+include_html	no_change	Nessun cambio
+include_html	none	Nessuna
+include_html	priority_medium	Media
+include_html	priority_lowest	Bassa
+include_html	priority_highest	Alta
+include_toolreport	last_days	Ultimi giorni
+include_toolreport	last_weeks	Ultime settimane
+include_toolreport	last_months	Ultimi mesi
+include_toolreport	last_years	Ultimi anni
+include_toolreport	project_lifespan	Durata del progetto
+include_toolreport	show	Visualizza
+source	show_source	Visualizza sorgente
+source	source_of	Sorgente di  $1
+source	missing_file	Argomento di file mancante
+source	missing_file_text	Deve essere specificato un nome file
+source	invalid_argument	Argomento file non valido
+source	invalid_argument_text	L'argomento per il file non è valido.
+source	file_not_found	File non trovato
+source	file_not_found_text	Il file specificato non è disponibile.
\ No newline at end of file

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php	2011-02-24 15:40:01 UTC (rev 8357)
@@ -72,7 +72,8 @@
 	global $what;
 	global $period;
 	global $span;
-
+	global $Language;
+	
 	print "<form method=\"GET\" action=\"$PHP_SELF#b\">";
 
 	print $html;
@@ -82,7 +83,13 @@
 
 	$periods=array('day'=>'Last day','week'=>'Last week');
 	$vals=array('day','week','month','year','lifespan');
-	$texts=array('Last day(s)','Last week(s)','Last month(s)','Last year(s)','Project lifespan');
+	$texts=array(
+		$Language->getText('include_toolreport','last_days'),
+		$Language->getText('include_toolreport','last_weeks'),
+		$Language->getText('include_toolreport','last_months'),
+		$Language->getText('include_toolreport','last_years'),
+		$Language->getText('include_toolreport','project_lifespan'));
+
 	if (!$period) $period="lifespan";
 
 	print " for ";
@@ -93,7 +100,7 @@
 	print html_build_select_box_from_arrays ($vals,$texts,'period',$period,false);
 
 	print "<input type=\"hidden\" name=\"group_id\" value=\"$group_id\" />";
-	print ' <input type="submit" value="Show" />';
+	print ' <input type="submit" value="'.$Language->getText('include_toolreport','show').'" />';
 	print "</form>\n";
 }
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php	2011-02-24 15:40:01 UTC (rev 8357)
@@ -57,7 +57,7 @@
 		if (!$pg->create($project_name,$description,$is_public,$send_all_posts_to)) {
 			exit_error('Error',$pg->getErrorMessage());
 		} else {
-			$feedback .= " project Inserted ";
+			$feedback .= $Language->getText('pm_admin_projects','project_inserted');
 		}
 	} else if ($add_cat) {
 		/*
@@ -77,7 +77,7 @@
 			if (!$pc->create($name)) {
 				exit_error('Error','Error inserting: '.$pc->getErrorMessage());
 			} else {
-				$feedback .= ' Category Inserted ';
+				$feedback .= $Language->getText('pm_admin_projects','category_inserted');
 			}
 		}
 
@@ -101,7 +101,7 @@
 			if (!$pc->update($name)) {
 				exit_error('Error','Error updating: '.$pc->getErrorMessage());
 			} else {
-				$feedback .= ' Category Updated ';
+				$feedback .= $Language->getText('pm_admin_projects','category_updated');
 				$update_cat=false;
 				$add_cat=true;
 			}
@@ -117,7 +117,7 @@
 		if (!$pg->update($project_name,$description,$is_public,$send_all_posts_to)) {
 			exit_error('Error',$pg->getErrorMessage());
 		} else {
-			$feedback .= " Updated Successfully ";
+			$feedback .= $Language->getText('general','update_successful');
 		}
 	}
 }
@@ -135,8 +135,8 @@
 	} elseif ($pg->isError()) {
 		exit_error('Error',$pg->getErrorMessage());
 	}
-	pm_header(array ('title'=>'Add Categories','pagename'=>'pm_admin_projects','sectionvals'=>$g->getPublicName()));
-	echo "<h1>Add Categories to: ". $pg->getName() ."</h1>";
+	pm_header(array ('title'=>$Language->getText('pm_admin_projects','add_categories_title'),'pagename'=>'pm_admin_projects','sectionvals'=>$g->getPublicName()));
+	echo "<h1>".$Language->getText('pm_admin_projects','add_categories_to').": ". $pg->getName() ."</h1>";
 
 	/*
 		List of possible categories for this ArtifactType
@@ -146,8 +146,8 @@
 	$rows=db_numrows($result);
 	if ($result && $rows > 0) {
 		$title_arr=array();
-		$title_arr[]='ID';
-		$title_arr[]='Title';
+		$title_arr[]=$Language->getText('pm_admin_projects','id');
+		$title_arr[]=$Language->getText('pm_admin_projects','project_title');
 
 		echo $GLOBALS['HTML']->listTableTop ($title_arr);
 
@@ -162,7 +162,7 @@
 		echo $GLOBALS['HTML']->listTableBottom();
 
 	} else {
-		echo "\n<h1>No categories defined</h1>";
+		echo "\n<h1>".$Language->getText('pm_admin_projects','no_categories')."</h1>";
 	}
 
 	?>
@@ -170,12 +170,12 @@
 	<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post">
 	<input type="hidden" name="add_cat" value="y">
 	<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>">
-	<strong>New Category Name:</strong><br />
+	<strong><?php echo $Language->getText('pm_admin_projects','category_name') ?>:</strong><br />
 	<input type="text" name="name" value="" size="15" maxlength="30"><br />
 	<p>
-	<strong><font COLOR="RED">Once you add a category, it cannot be deleted</font></strong>
+	<strong><font COLOR="RED"><?php echo $Language->getText('pm_admin_projects','category_note') ?></font></strong>
 	<p>
-	<input type="SUBMIT" name="post_changes" value="SUBMIT">
+	<input type="SUBMIT" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>">
 	</form>
 	<?php
 
@@ -196,10 +196,10 @@
 	} elseif ($pg->isError()) {
 		exit_error('Error',$pg->getErrorMessage());
 	}
-	pm_header(array ('title'=>'Add Categories','pagename'=>'pm_admin_projects','sectionvals'=>$g->getPublicName()));
+	pm_header(array ('title'=>$Language->getText('pm_admin_projects','add_categories'),'pagename'=>'pm_admin_projects','sectionvals'=>$g->getPublicName()));
 
 	echo '
-		<h1>Modify an Category in: '. $pg->getName() .'</h1>';
+		<h1>'.$Language->getText('pm_admin_projects','modify_category').': '. $pg->getName() .'</h1>';
 
 	$ac = new ProjectCategory($pg,$id);
 	if (!$ac || !is_object($ac)) {
@@ -214,14 +214,12 @@
 		<input type="hidden" name="id" value="<?php echo $ac->getID(); ?>">
 		<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>">
 		<p>
-		<strong>Category Name:</strong><br />
+		<strong><?php echo $Language->getText('pm_admin_projects','category_name')?>:</strong><br />
 		<input type="text" name="name" value="<?php echo $ac->getName(); ?>">
 		<p>
-		<strong><font COLOR="RED">It is not recommended that you change the artifact
-			category name because other things are dependent upon it. When you change
-			the category name, all related items will be changed to the new name.</font></strong>
+		<strong><font COLOR="RED"><?php echo $Language->getText('pm_admin_projects','category_note2')?></font></strong>
 		<p>
-		<input type="SUBMIT" name="post_changes" value="SUBMIT">
+		<input type="SUBMIT" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>">
 		</form>
 		<?php
 	}
@@ -233,7 +231,7 @@
 		Show categories and blank row
 	*/
 
-	pm_header(array ('title'=>'Add Projects','pagename'=>'pm_admin_projects','sectionvals'=>group_getname($group_id)));
+	pm_header(array ('title'=>$Language->getText('pm_admin_projects','add_subprojects_title'),'pagename'=>'pm_admin_projects','sectionvals'=>group_getname($group_id)));
 
 	/*
 		List of possible categories for this group
@@ -242,34 +240,33 @@
 	$result=db_query($sql);
 	echo "<p>";
 	if ($result && db_numrows($result) > 0) {
-		ShowResultSet($result,"Existing Subprojects");
+		ShowResultSet($result,$Language->getText('pm_admin_projects','existing_subprojects'));
 	} else {
-		echo "\n<h1>No Subprojects in this group</h1>";
+		echo "\n<h1>".$Language->getText('pm_admin_projects','no_subprojects')."</h1>";
 	}
 	?>
+	<p><?php echo $Language->getText('pm_admin_projects','projects_intro') ?>
+
 	<p>
-	Add a new project to the Project/Task Manager. <strong>This is different than
-	 adding a task to a project.</strong>
-	<p>
 	<form action="<?php echo $PHP_SELF."?group_id=$group_id"; ?>" method="post">
 	<input type="hidden" name="addproject" value="y">
 	<input type="hidden" name="post_changes" value="y">
 	<p>
-	<strong>Is Public?</strong><br />
-	<input type="radio" name="is_public" value="1" checked> Yes<br />
-	<input type="radio" name="is_public" value="0"> No<p>
+	<strong><?php echo $Language->getText('pm_admin_projects','is_public')?></strong><br />
+	<input type="radio" name="is_public" value="1" checked><?php echo $Language->getText('general','yes') ?><br />
+	<input type="radio" name="is_public" value="0"><?php echo $Language->getText('general','no') ?><p>
 	<p>
-	<h3>New Project Name:</h3>
+	<h3><?php echo $Language->getText('pm_admin_projects','project_name')?></h3>
 	<p>
 	<input type="text" name="project_name" value="" size="15" maxlength="30">
 	<p>
-	<strong>Description:</strong><br />
+	<strong><?php echo $Language->getText('pm_admin_projects','description')?></strong><br />
 	<input type="text" name="description" value="" size="40" maxlength="80">
 	<p>
-	<strong>Send All Updates To:</strong><br />
+	<strong><?php echo $Language->getText('pm_admin_projects','send_updates')?>:</strong><br />
 	<input type="text" name="send_all_posts_to" value="" size="40" maxlength="80"><br />
 	<p>
-	<input type="SUBMIT" name="SUBMIT" value="SUBMIT">
+	<input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','submit') ?>">
 	</form>
 	<?php
 	pm_footer(array());
@@ -284,12 +281,11 @@
 		exit_error('Error',$pg->getErrorMessage());
 	}
 
-	pm_header(array('title'=>'Change Project/Task Manager Status','pagename'=>'pm_admin_update_pg','sectionvals'=>$g->getPublicName()));
+	pm_header(array('title'=>$Language->getText('pm_admin_projects','change_project_title'),'pagename'=>'pm_admin_update_pg','sectionvals'=>$g->getPublicName()));
 
 	?>
+	<p><?php echo $Language->getText('pm_admin_projects','change_project_intro') ?>
 	<p>
-	You can modify an existing Project using this form. Please note that private projects
-	can still be viewed by members of your project, but not the general public.<p>
 
 	<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post">
 	<input type="hidden" name="post_changes" value="y">
@@ -298,37 +294,37 @@
 	<table border="0">
 	<tr>
 		<td>
-			<strong>Is Public?</strong><br />
-			<input type="radio" name="is_public" value="1"<?php echo (($pg->isPublic()=='1')?' checked':''); ?>> Yes<br />
-			<input type="radio" name="is_public" value="0"<?php echo (($pg->isPublic()=='0')?' checked':''); ?>> No<br />
-			<input type="radio" name="is_public" value="9"<?php echo (($pg->isPublic()=='9')?' checked':''); ?>> Deleted<br />
+			<strong><?php echo $Language->getText('pm_admin_projects','is_public')?></strong><br />
+			<input type="radio" name="is_public" value="1"<?php echo (($pg->isPublic()=='1')?' checked':''); ?>> <?php echo $Language->getText('general','yes') ?><br />
+			<input type="radio" name="is_public" value="0"<?php echo (($pg->isPublic()=='0')?' checked':''); ?>> <?php echo $Language->getText('general','no') ?><br />
+			<input type="radio" name="is_public" value="9"<?php echo (($pg->isPublic()=='9')?' checked':''); ?>> <?php echo $Language->getText('general','deleted')?><br />
 		</td>
 	</tr>
 	<tr>
-		<td><strong>Project Name:</strong><br />
+		<td><strong><?php echo $Language->getText('pm_admin_projects','project_name')?>:</strong><br />
 			<input type="text" name="project_name" value="<?php echo $pg->getName() ?>">
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<strong>Description:</strong><br />
+			<strong><?php echo $Language->getText('pm_admin_projects','description')?>:</strong><br />
 			<input type="text" name="description" value="<?php echo $pg->getDescription(); ?>" size="40" maxlength="80"><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<strong>Send All Updates To:</strong><br />
+			<strong><?php echo $Language->getText('pm_admin_projects','send_updates')?>:</strong><br />
 			<input type="text" name="send_all_posts_to" value="<?php echo $pg->getSendAllPostsTo(); ?>" size="40" maxlength="80"><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<strong><a href="<?php echo $PHP_SELF."?group_id=$group_id&add_cat=1&group_project_id=".$pg->getID(); ?>">Add/Edit Categories</a></strong><br />
+			<strong><a href="<?php echo $PHP_SELF."?group_id=$group_id&add_cat=1&group_project_id=".$pg->getID(); ?>"><?php echo $Language->getText('pm_admin_projects','add_edit_categories')?></a></strong><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<input type="SUBMIT" name="SUBMIT" value="Update">
+			<input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','update') ?>">
 		</td>
 	</tr>
 	</table>
@@ -342,12 +338,12 @@
 	/*
 		Show main page
 	*/
-	pm_header(array('title'=>'Project/Task Manager Administration','pagename'=>'pm_admin','sectionvals'=>group_getname($group_id)));
+	pm_header(array('title'=>$Language->getText('pm_admin_projects','admin_title'),'pagename'=>'pm_admin','sectionvals'=>group_getname($group_id)));
 
 	?>
 	<p>
-	<a href="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>&addproject=1">Add A Project</a><br />
-	Add a project, which can contain a set of tasks. This is different than creating a new task.
+	<a href="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>&addproject=1"><?php echo $Language->getText('pm_admin_projects','add_project') ?></a><br />
+	<?php echo $Language->getText('pm_admin_projects','add_project_intro') ?>
 	<p>
 	<?php
     $pgf = new ProjectGroupFactory($g);
@@ -360,14 +356,11 @@
     $pg_arr =& $pgf->getProjectGroups();
 
     if (count($pg_arr) < 1 || $pg_arr == false) {
-        echo '
-            <h2>No Projects Found</h2>
-            <p>
-            None found for this group. You may add new Projects using the "Add A Project" link above.';
+        echo $Language->getText('pm_admin_projects','no_projects_found');
         echo db_error();
     } else {
 		for ($i=0; $i<count($pg_arr); $i++) {
-			echo '<a href="'. $PHP_SELF.'?group_id='.$group_id.'&group_project_id='.$pg_arr[$i]->getID().'&update_pg=1">Edit/Update Project: <strong>'.$pg_arr[$i]->getName().'</strong></a><p>';
+			echo '<a href="'. $PHP_SELF.'?group_id='.$group_id.'&group_project_id='.$pg_arr[$i]->getID().'&update_pg=1">'.$Language->getText('pm_admin_projects','edit_update').': <strong>'.$pg_arr[$i]->getName().'</strong></a><p>';
 		}
 
 	}

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php	2011-02-24 15:40:01 UTC (rev 8357)
@@ -44,14 +44,16 @@
 }
 
 
-$page_title="Task Reporting System";
+$page_title=$Language->getText('pm_reporting','title');
 $bar_colors=array("pink","violet");
 
 function pm_reporting_header($group_id) {
+		global $Language;
 		reports_header($group_id,
 			array('aging','tech','subproject'),
-				array('Aging Report','Tasks by Technician','Tasks by Subproject')
-	);
+			array($Language->getText('pm_reporting','aging_report'),
+				$Language->getText('pm_reporting','by_tech'),
+				$Language->getText('pm_reporting','by_subproject')));
 }
 
 function pm_quick_report($group_id,$title,$subtitle1,$sql1,$subtitle2,$sql2,$comment="") {
@@ -80,9 +82,9 @@
 
 	if ($what=="aging") {
 
-		pm_header(array ("title"=>"Aging Report",'pagename'=>'pm_reporting'));
+		pm_header(array ("title"=>$Language->getText('pm_reporting','aging_report'),'pagename'=>'pm_reporting'));
 		pm_reporting_header($group_id);
-		echo "\n<h1>Aging Report</h1>";
+		echo "\n<h1>".$Language->getText('pm_reporting','aging_report')."</h1>";
 
 		$time_now=time();
 //		echo $time_now."<p>";
@@ -117,8 +119,7 @@
 			$values[$counter-1]=((int)(db_result($result, 0,0)*1000))/1000;
 		}
 
-		GraphIt($names, $values,
-			"Average Duration For Closed Tasks (days)");
+		GraphIt($names, $values, $Language->getText('pm_reporting','average_duration'));
 
 		echo "<p>";
 
@@ -140,7 +141,7 @@
 			$values[$counter-1]=db_result($result, 0,0);
 		}
 
-		GraphIt($names, $values, "Number of Tasks Started");
+		GraphIt($names, $values, $Language->getText('pm_reporting','started_tasks'));
 
 		echo "<p>";
 
@@ -162,7 +163,7 @@
 			$values[$counter-1]=db_result($result, 0,0);
 		}
 
-		GraphIt($names, $values, "Number of Tasks Still Not Completed");
+		GraphIt($names, $values, $Language->getText('pm_reporting','not_completed'));
 
 		echo "<p>";
 
@@ -186,9 +187,9 @@
 			  "GROUP BY Subproject";
 
 		pm_quick_report($group_id,
-			  "Tasks By Category",
-			  "Open Tasks By Category",$sql1,
-			  "All Tasks By Category",$sql2);
+			  $Language->getText('pm_reporting','tasks_by_category'),
+			  $Language->getText('pm_reporting','open_tasks_by_category'),$sql1,
+			  $Language->getText('pm_reporting','all_tasks_by_category'),$sql2);
 
 	} else if ($what=="tech") {
 
@@ -213,14 +214,11 @@
 			  "GROUP BY Technician";
 
 		pm_quick_report($group_id,
-		  "Tasks By Technician",
-		  "Open Tasks By Technician",$sql1,
-		  "All Tasks By Technician",$sql2,
-		  "<p>Note that same task can be ".
-		  "assigned to several technicians. ".
-		  "Such task will be counted for ".
-		  "each of them.</p>");
-
+		  $Language->getText('pm_reporting','tasks_by_technician'),
+		  $Language->getText('pm_reporting','open_tasks_by_technician'),$sql1,
+		  $Language->getText('pm_reporting','all_tasks_by_technician'),$sql2,
+		  $Language->getText('pm_reporting','report_note'));
+		  
 	} else {
 		exit_missing_param();
 	}

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/source.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/source.php	2011-02-24 15:39:59 UTC (rev 8356)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/source.php	2011-02-24 15:40:01 UTC (rev 8357)
@@ -19,11 +19,11 @@
 }
 
 if (!$file) {
-	exit_error("Missing File Argument", "A file must be specified for this page.");
+	exit_error($Language->getText('source','missing_file'), $Language->getText('source','missing_file_text'));
 }
 
 if (strstr($file,'..')) {
-	exit_error("Invalid File Argument", "The file argument is invalid.");
+	exit_error($Language->getText('source','invalid_argument'), $Language->getText('source','invalid_argument_text'));
 }
 
 $dir = dirname($file);
@@ -36,10 +36,10 @@
 }
 
 if (!file_exists($fname) || @is_dir($fname)) {
-	exit_error("File Not Found", "Cannot find specified file to display.");
+	exit_error($Language->getText('source','file_not_found'), $Language->getText('source','file_not_found_text'));
 }
 
-$HTML->header(array('title'=>"Source of $file",'pagename'=>'viewsource'));
+$HTML->header(array('title'=>$Language->getText('source','source_of',$file),'pagename'=>'viewsource'));
 
 show_source($fname);
 



More information about the evolvis-commits mailing list