Changeset 659 for devel/lms/rss.php
- Timestamp:
- 10/21/06 20:56:09 (2 years ago)
- Files:
-
- devel/lms/rss.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lms/rss.php
r269 r659 26 26 // now start doing the rss feed 27 27 $starttime = time()-(86400*30); 28 $rssdescription = sprintf( gettext("Activity for %s, hosted on %s."),$user->name,$CFG->sitename);28 $rssdescription = sprintf(__gettext("Activity for %s, hosted on %s."),$user->name,$CFG->sitename); 29 29 $mainurl = $CFG->wwwroot.'_activity/'; 30 30 echo ' 31 31 <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> 32 32 <channel xml:base="'.$mainurl.'"> 33 <title><![CDATA['.$user->name.' : '. gettext("Activity").']]></title>33 <title><![CDATA['.$user->name.' : '.__gettext("Activity").']]></title> 34 34 <description><![CDATA['.$rssdescription.']]></description> 35 35 <link>'.$mainurl.'</link> … … 41 41 WHERE wc.posted >= ? AND wp.owner = ? 42 42 ORDER BY wc.posted DESC LIMIT 10',array($starttime,$user->ident))) { 43 $postedby = gettext("%s posted on weblog post:");43 $postedby = __gettext("%s posted on weblog post:"); 44 44 foreach($activities as $activity) { 45 45 $title = sprintf($postedby,stripslashes($activity->postedname)) . " " . stripslashes($activity->weblogtitle); … … 63 63 LEFT JOIN '.$CFG->prefix.'users u ON u.ident = wp.weblog 64 64 WHERE wl.owner = ? AND wc.posted >= ? ORDER BY wc.posted DESC',array($user->ident,$starttime))) { 65 $postedby = gettext("%s posted on weblog post '%s'");65 $postedby = __gettext("%s posted on weblog post '%s'"); 66 66 foreach($activities as $activity) { 67 67 $title = sprintf($postedby,stripslashes($activity->postedname), stripslashes($activity->weblogtitle)); … … 81 81 } 82 82 if (empty($something)) { 83 $title = gettext('No activity');83 $title = __gettext('No activity'); 84 84 $link = $mainurl; 85 85 echo "
