[Fusionforge-commits] r7059 - trunk/gforge/www/forum/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Feb 24 11:23:11 CET 2009


Author: aljeux
Date: 2009-02-24 11:23:11 +0100 (Tue, 24 Feb 2009)
New Revision: 7059

Modified:
   trunk/gforge/www/forum/include/AttachManager.class.php
Log:
i18n: add 2 strings

Modified: trunk/gforge/www/forum/include/AttachManager.class.php
===================================================================
--- trunk/gforge/www/forum/include/AttachManager.class.php	2009-02-24 10:23:05 UTC (rev 7058)
+++ trunk/gforge/www/forum/include/AttachManager.class.php	2009-02-24 10:23:11 UTC (rev 7059)
@@ -141,7 +141,7 @@
 			
 			$f = $msg->getForum();
 			if (!$f || !is_object($f)) {
-			exit_error('Error','Could Not Get Forum Object');
+			exit_error('Error', _('Could Not Get Forum Object'));
 			} else {
 				if ( ((user_getid() == $attach_userid) || ($f->userIsAdmin())) && (!$msg->isPending()) ) { //only permit the user who created the attach to delete it, or an admin
 					$attach .= "   <a href=\"javascript:manageattachments('".util_make_url ("/forum/attachment.php?attachid=$attachid&group_id=$group_id&forum_id=$forum_id&msg_id=$msg_id&edit=yes")."','no');\">" .  "<font size=\"-3\">" .  html_image('ic/forum_edit.gif','37','15',array('alt'=>"Edit")) . "</font></a>";
@@ -154,7 +154,7 @@
 			if (!$f || !is_object($f)) {
 			exit_error('Error','Could Not Get Forum Object');
 			} else {
-				$attach = html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . "No attachment found";
+				$attach = html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . _('No attachment found');
 				if ( ((user_getid() == $msg->getPosterID()) || ($f->userIsAdmin())) && (!$msg->isPending()) ) { //only permit an admin or the user who created the message to insert an attach
 					$attach .= "   <a href=\"javascript:manageattachments('".util_make_url ("/forum/attachment.php?attachid=0&group_id=$group_id&forum_id=$forum_id&msg_id=$msg_id&edit=yes")."','no');\">" .  "<font size=\"-3\">" .  html_image('ic/forum_add.gif','37','15',array('alt'=>"Add")) . "</font></a>";
 				}




More information about the Fusionforge-commits mailing list