[evolvis-commits] r12015: Remove warnins and gettext stuffs↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 18:33:19 CET 2011


Author: mirabilos
Date: 2011-02-24 18:33:19 +0100 (Thu, 24 Feb 2011)
New Revision: 12015

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_home.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_summary.php
Log:
Remove warnins and gettext stuffs


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_home.php	2011-02-24 17:33:18 UTC (rev 12014)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_home.php	2011-02-24 17:33:19 UTC (rev 12015)
@@ -278,15 +278,22 @@
 if ($project->usesForum()) {
 	print '<hr size="1" /><a href="'.$GLOBALS['sys_urlprefix'].'/forum/?group_id='.$group_id.'">';
 	print html_image('ic/forum20g.png','20','20',array('alt'=>_('Forums')));
-	print ' '._('Public Forums').'</a>';
+	print ' '._('Forums').'</a>';
 	$forums_count = project_get_public_forum_count($group_id);
+	$messages_count = project_get_public_forum_message_count($group_id);
+	print ' (<strong> ' . $forums_count .'</strong> ';
 	if ($forums_count > 1) {
-		$label = 'forum_messages';
+		printf(_("public forums"));
 	} else {
-		$label = 'forum_messages_only_one_forum';
+		printf(_("public forum"));
 	}
-	print " ( ".$Language->getText('project_home',$label,array(project_get_public_forum_message_count($group_id), $forums_count))." ";
-	print ")\n";
+	print ' / <strong> ' . $messages_count .'</strong> ';
+	if ($messages_count > 1) {
+		printf(_("messages"));
+	} else {
+		printf(_("message"));
+	}
+	print ' )' ;
 }
 
 // ##################### Doc Manager
@@ -305,7 +312,7 @@
 	print '<hr size="1" /><a href="'.$GLOBALS['sys_urlprefix'].'/mail/?group_id='.$group_id.'">';
 	print html_image('ic/mail16b.png','20','20',array('alt'=>_('Lists')));
 	print ' '._('Mailing Lists').'</a>';
-	print " ( <strong>". project_get_mail_list_count($group_id) ."</strong> "._('public mailing lists').")";
+	print " ( <strong>". project_get_mail_list_count($group_id) ."</strong> "._('public mailing lists')." )";
 }
 
 // ##################### Task Manager

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_summary.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_summary.php	2011-02-24 17:33:18 UTC (rev 12014)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/project_summary.php	2011-02-24 17:33:19 UTC (rev 12015)
@@ -41,7 +41,8 @@
 	if (!$project_agg_arr_is_set) {
 		project_setup_agg($group_id);
 	}
-	if ($project_agg_arr[$type]) {
+	// Remove warning
+	if (@$project_agg_arr[$type]) {
 		return "$project_agg_arr[$type]";
 	} else {
 		return '0';



More information about the evolvis-commits mailing list