[Fusionforge-commits] r9588 - trunk/gforge/www/export

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Apr 23 11:28:32 CEST 2010


Author: lolando
Date: 2010-04-23 11:28:32 +0200 (Fri, 23 Apr 2010)
New Revision: 9588

Modified:
   trunk/gforge/www/export/rss20_docman.php
   trunk/gforge/www/export/rss20_forum.php
   trunk/gforge/www/export/rss20_tracker.php
Log:
convert to php-gettext


Modified: trunk/gforge/www/export/rss20_docman.php
===================================================================
--- trunk/gforge/www/export/rss20_docman.php	2010-04-23 09:28:23 UTC (rev 9587)
+++ trunk/gforge/www/export/rss20_docman.php	2010-04-23 09:28:32 UTC (rev 9588)
@@ -106,7 +106,7 @@
 	$child_count = count($nested_groups["$parent_group"]);
 	*/	
 	if (!$d_arr || count($d_arr) < 1) {
-		endOnError($Language->getText('docman','error_no_docs'));
+		endOnError(_("No documents found in Document Manager"));
 
 	} else {
 		//	Put the result set (list of documents for this group) into feed items

Modified: trunk/gforge/www/export/rss20_forum.php
===================================================================
--- trunk/gforge/www/export/rss20_forum.php	2010-04-23 09:28:23 UTC (rev 9587)
+++ trunk/gforge/www/export/rss20_forum.php	2010-04-23 09:28:32 UTC (rev 9588)
@@ -80,7 +80,7 @@
                 if ($ff &&is_object($ff) && !$ff->isError()) {
                     $farr = array_merge($farr, $ff->getForums());
                     if (count($farr) < 1) {
-                            error_log("Forum RSS: ".$Language->getText('forum','error_no_forums_found', array($group->getPublicName())),0);
+                            error_log(_("Forum RSS: No forums found"),0);
                     }
                 }
                 else error_log("Forum RSS: ForumFactory error: ".$ff->getErrorMessage()." - No forums for group ".$group->getPublicName(),0);
@@ -245,7 +245,7 @@
     
     $res_msg = db_query($msg_sql);
     if (!$res_msg || db_numrows($res_msg) < 1) {
-            error_log("Forum RSS: ".$Language->getText('forum','error_forum_not_found').' '.db_error(),0);
+            error_log(_("Forum RSS: Forum not found: ").' '.db_error(),0);
     }
     if ($debug) error_log("Forum RSS: ". $msg_sql,0);
 

Modified: trunk/gforge/www/export/rss20_tracker.php
===================================================================
--- trunk/gforge/www/export/rss20_tracker.php	2010-04-23 09:28:23 UTC (rev 9587)
+++ trunk/gforge/www/export/rss20_tracker.php	2010-04-23 09:28:32 UTC (rev 9588)
@@ -89,7 +89,7 @@
 	//if ($limit > 100) $limit = 100;
 
 	if (!$at_arr || count($at_arr) < 1) {
-		endOnError($Language->getText('tracker','no_trackers_text'));
+		endOnError(_("Tracker RSS: No trackers found"));
 
 	} else {
 		//	Put the result set (list of trackers for this group) into feed items




More information about the Fusionforge-commits mailing list