[Fusionforge-commits] r7129 - trunk/gforge/www/my

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Mar 6 13:52:38 CET 2009


Author: lolando
Date: 2009-03-06 13:52:38 +0100 (Fri, 06 Mar 2009)
New Revision: 7129

Modified:
   trunk/gforge/www/my/diary.php
Log:
Gettextize subject and footer for the diary monitoring email

Modified: trunk/gforge/www/my/diary.php
===================================================================
--- trunk/gforge/www/my/diary.php	2009-03-06 12:32:36 UTC (rev 7128)
+++ trunk/gforge/www/my/diary.php	2009-03-06 12:52:38 UTC (rev 7129)
@@ -84,14 +84,22 @@
 							$tolist=implode(util_result_column_to_array($result),', ');
 							
 							$to = ''; // send to noreply@
-							$subject = "[ SF User Notes: ". $u->getRealName() ."] ".stripslashes($summary);
+							$subject = sprintf (_("[%s User Notes: %s] %s"),
+									    $GLOBALS['sys_name'],
+									    $u->getRealName(),
+									    stripslashes($summary)) ;
+							$body = util_line_wrap(stripslashes($details)) ;
+							$body .= _("
+
+______________________________________________________________________
+You are receiving this email because you elected to monitor this user.
+To stop monitoring this user, login to %s and visit the following link:
+
+%s
+",
+								   $GLOBALS['sys_name'],
+								   util_make_url ("/developer/monitor.php?diary_user=". user_getid())) ;
 							
-							$body = util_line_wrap(stripslashes($details)).
-								"\n\n______________________________________________________________________".
-								"\nYou are receiving this email because you elected to monitor this user.".
-								"\nTo stop monitoring this user, login to ".$GLOBALS['sys_name']." and visit: ".
-								"\nhttp://".$GLOBALS['sys_default_domain']."/developer/monitor.php?diary_user=". user_getid();
-							
 							util_send_message($to, $subject, $body, $to, $tolist);
 							
 							$feedback .= " ".sprintf(ngettext("email sent to %s monitoring user",




More information about the Fusionforge-commits mailing list