Changeset 659 for devel/lms/rss.php

Show
Ignore:
Timestamp:
10/21/06 20:56:09 (2 years ago)
Author:
misja
Message:

Taking gettext to a new level, see message <http://lists.elgg.org/pipermail/development/2006-October/000590.html>. In a nutshell: all gettext calls are replaced by gettext, revamped gettext handling plus some additional fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lms/rss.php

    r269 r659  
    2626// now start doing the rss feed 
    2727$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); 
    2929$mainurl = $CFG->wwwroot.'_activity/'; 
    3030echo ' 
    3131<rss version="2.0"   xmlns:dc="http://purl.org/dc/elements/1.1/"> 
    3232    <channel xml:base="'.$mainurl.'"> 
    33         <title><![CDATA['.$user->name.' : '.gettext("Activity").']]></title> 
     33        <title><![CDATA['.$user->name.' : '.__gettext("Activity").']]></title> 
    3434        <description><![CDATA['.$rssdescription.']]></description> 
    3535        <link>'.$mainurl.'</link> 
     
    4141                                   WHERE wc.posted >= ? AND wp.owner = ?  
    4242                                   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:"); 
    4444    foreach($activities as $activity) { 
    4545        $title = sprintf($postedby,stripslashes($activity->postedname)) . " " . stripslashes($activity->weblogtitle); 
     
    6363                                   LEFT JOIN '.$CFG->prefix.'users u ON u.ident = wp.weblog  
    6464                                   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'"); 
    6666    foreach($activities as $activity) { 
    6767        $title = sprintf($postedby,stripslashes($activity->postedname), stripslashes($activity->weblogtitle)); 
     
    8181} 
    8282if (empty($something)) { 
    83     $title = gettext('No activity'); 
     83    $title = __gettext('No activity'); 
    8484    $link = $mainurl; 
    8585    echo "