[evolvis-commits] r12985: Gettextize subject and footer for the diary monitoring email

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 02:12:57 CET 2011


Author: mirabilos
Date: 2011-02-28 02:12:57 +0100 (Mon, 28 Feb 2011)
New Revision: 12985

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

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php	2011-02-28 01:12:55 UTC (rev 12984)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php	2011-02-28 01:12:57 UTC (rev 12985)
@@ -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 evolvis-commits mailing list