Show
Ignore:
Timestamp:
10/16/06 06:31:35 (2 years ago)
Author:
mdodoo
Message:

Sync with trunk up to (but not including changeset [1585]). I should *definitely* do this more often, because this was really annoying.

Location:
branches/multiuser/cls
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • branches/multiuser/cls/alltags.php

    r1181 r1604  
    7676            .getTable('metatag'); 
    7777        if($this -> type == 'channel'){ 
    78             $sql .= " left join " . getTable('channels') . " c on (fid=c.id)," 
    79                 .getTable('tag')." t "." where tid=t.id " 
    80                 . " and ttype = 'channel'"; 
     78            $sql .= " left join " . getTable('channels') . " c on (fid=c.id) " 
     79                . " inner join " . getTable('tag')." t "." on tid=t.id " 
     80                . " where ttype = 'channel'"; 
    8181        }else{ 
    82             $sql .= " left join ".getTable('item')." i on (fid=i.id)," 
    83                 .getTable('tag')." t "." where tid=t.id " 
    84                 ." and ttype = 'item'"; 
     82            $sql .= " left join ".getTable('item')." i on (fid=i.id) " 
     83                . " inner join " . getTable('tag')." t "." on tid=t.id " 
     84                ." where ttype = 'item'"; 
    8585        } 
    8686 
     
    9191        } 
    9292         
    93         $sql .= "group by tid order by tag"; 
     93        $sql .= " group by tid order by tag"; 
    9494 
    9595         
     
    163163                $taglink = $this -> makeTagLink($tag); 
    164164                $ret .= "\t<a href=\"$taglink\" title=\"$cnt " 
    165                     . ($cnt > 1 || $cnt == 0 ? LBL_ITEMS : LBL_ITEM)."\" style=\"font-size: " 
     165                    . ($cnt > 1 || $cnt == 0 ? __('items') : __('item'))."\" style=\"font-size: " 
    166166                    . (SMALLEST + ($cnt / $fontstep)).UNIT.";\">$tag</a> \n"; 
    167167            } 
  • branches/multiuser/cls/categories.php

    r1519 r1604  
    5858        $this->loadCollapsedState(); 
    5959        $this -> populate(); 
    60         $this ->    columnTitle = LBL_TAG_FOLDERS; 
     60        $this ->    columnTitle = __('Categories'); 
    6161        $GLOBALS['rss']-> feedList = $this; 
    6262    } 
     
    8585     
    8686    function getStats() { 
    87         return sprintf(LBL_CATCNT_PF, $this -> taggedFeedCnt, $this -> tagCnt, 0); 
     87        return sprintf(__('<strong>%d</strong> feeds in <strong>%d</strong> categories'), $this -> taggedFeedCnt, $this -> tagCnt, 0); 
    8888    } 
    8989     
     
    109109            //get unread count per folder 
    110110            $sql = "select m.tid, t.tag, count(*) as cnt " 
    111             ." from " 
    112             .getTable('item') ." i, " 
    113             .getTable('channels') . " c, " 
    114             .getTable('metatag') ." m, " 
    115             .getTable('tag') . " t" 
     111            ." from ".getTable('item') ." i, " 
     112            . " inner join " . getTable('channels') . " c on i.cid = c.id " 
     113            . " inner join " . getTable('metatag') ." m on m.fid = c.id " 
     114            . " inner join " . getTable('tag') . " t on t.id = m.tid" 
    116115            ." where i.unread & ". RSS_MODE_UNREAD_STATE 
    117116            ." and not(i.unread & ". RSS_MODE_DELETED_STATE .")"; 
     
    119118                $sql .=" and not(unread & " . RSS_MODE_PRIVATE_STATE .") "; 
    120119            } 
    121             $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") "; 
    122             $sql .= " and i.cid=c.id and c.id=m.fid and m.tid=t.id" 
     120            $sql .= " and not(c.mode & " . RSS_MODE_DELETED_STATE .") " 
    123121            ." group by m.tid"; 
    124122            _pf('query'); 
     
    142140        $sql = "select " 
    143141         ." c.id, c.title, c.url, c.siteurl, t.tag, c.parent, c.icon, c.descr, c.mode, t.id " 
    144          ." from " 
    145          .getTable('channels') ." c, " 
    146          .getTable('metatag') ." m, " 
    147          .getTable('tag') . " t " 
    148          ." where m.fid = c.id and m.ttype = 'channel' " 
    149          ." and m.tid = t.id "; 
     142         ." from ".getTable('channels') ." c, " 
     143         . " inner join " . getTable('metatag') ." m on m.fid = c.id " 
     144         . " inner join " . getTable('tag') . " t on t.id = m.tid" 
     145         ." where m.ttype = 'channel' "; 
    150146 
    151147 
  • branches/multiuser/cls/channels.php

    r1595 r1604  
    9797 
    9898        if ($unreadCount > 0) { 
    99             $this->rdLbl= sprintf(LBL_UNREAD_PF, "cid$id","",$unreadCount); 
     99            $this->rdLbl= sprintf(__('<strong id="%s" style="%s">(%d unread)</strong>'), "cid$id","",$unreadCount); 
    100100            $this->class_= "feed title unread"; 
    101101        } else { 
     
    151151    var $activeId; 
    152152    var $feedCount = 0; 
    153     var $columnTitle = LBL_H2_CHANNELS; 
     153    var $columnTitle; 
    154154    var $stats; 
    155155     
    156156    function FeedList($activeId) { 
    157157        _pf('FeedList() ctor'); 
     158        $this ->columnTitle= __('Feeds'); 
    158159        $this->activeId = $activeId; 
    159160        $this->loadCollapsedState(); 
     
    170171        _pf(' ... totalCount');      
    171172        $sql =  
    172             "select count(*) from ".getTable("item2user") . "i , "  
    173             . getTable('channels2user') . " c2u "    
    174             ." where i.fkcid=c2u.fkcid and i.flgdeleted=0 " 
     173            "select count(*) from ".getTable("item2user") . "i "  
     174            . " inner join " . getTable('channels2user') . " c2u "   
     175            ." on i.fkcid=c2u.fkcid where i.flgdeleted=0 " 
    175176            ." and c2u.fkuid=" . rss_user_id() 
    176177            ." and i.fkuid=" . rss_user_id() 
     
    194195        _pf(' ... done: feedsCount');                
    195196         
    196         $this ->stats = sprintf(LBL_ITEMCOUNT_PF, $total, $unread, $channelcount); 
     197        $this ->stats = sprintf(__('<strong>%d</strong> items (<strong id="fucnt">%d</strong> unread) in <strong>%d</strong> feeds'), $total, $unread, $channelcount); 
    197198        _pf('done: getStats()'); 
    198199        return $this -> stats; 
     
    221222            //get unread count per folder                                                                         
    222223            $sql = "select f.id, f.name, count(*) as cnt " 
    223             ." from " 
    224             .getTable('item2user') ." i2u, " 
    225             .getTable('channels2user') . " c2u, " 
    226             .getTable('folders') ." f " 
     224            ." from " . getTable('item2user') ." i2u " 
     225            . " inner join " . getTable('channels2user') . " c2u on c2u.fkuid=" . rss_user_id() 
     226            . " inner join " . getTable('folders') ." f on c2u.parent=f.id" 
    227227            ." where i2u.flgunread =1 " 
    228228            ." and i2u.flgdeleted=0 "; 
     
    230230                $sql .=" and i2u.flgprivate =0 "; 
    231231            } 
    232             $sql .= " and c2u.fkuid=" . rss_user_id(); 
    233232            $sql .= " and c2u.flgdeleted=0 "; 
    234             $sql .= " and c2u.parent=f.id " 
    235233            ." group by f.id";  
    236234            _pf('query'); 
     
    255253        $sql = "select " 
    256254        ." c.id, c.title, c.url, c.siteurl, f.name, c2u.parent, c2u.icon, c.descr, c2u.flgdeleted,c2u.flgprivate " 
    257         ." from " 
    258         .getTable("channels")." c, " 
    259         .getTable("channels2user")." c2u, " 
    260         .getTable("folders")." f " 
    261          
    262         ." where " 
    263         ." f.id = c.parent " 
    264         ." and c2u.fkcid=c.id " 
    265         . " and c2u.fkuid=" . rss_user_id(); 
     255        ." from ".getTable("channels")." c " 
     256        . " inner join " . getTable("channels2user")." c2u on c2u.fkcid=c.id " 
     257        . " inner join " . getTable("folders") . " f.id = c.parent " 
     258         
     259        ." where c2u.fkuid=" . rss_user_id(); 
    266260        if (hidePrivate()) { 
    267261            $sql .= " and c2u.flgprivate=0 "; 
  • branches/multiuser/cls/header.php

    r1181 r1604  
    6060            is_array($cidfid) &&  
    6161            ($uc = getUnreadCount($cidfid['cid'], $cidfid['fid']))) { 
    62             $this->docTitle .= " ($uc ".LBL_UNREAD.")"; 
     62            $this->docTitle .= " ($uc ".__('unread').")"; 
    6363        } 
    6464 
     
    9595         
    9696        $GLOBALS['rss'] -> sideMenu = new SideMenu(); 
    97         $GLOBALS['rss'] -> sideMenu -> addMenu(LBL_H2_CHANNELS,'FeedList' , "_side('FeedList')"); 
    98         $GLOBALS['rss'] -> sideMenu -> addMenu(LBL_TAG_FOLDERS, 'CatList', "_side('CatList')"); 
    99         $GLOBALS['rss'] -> sideMenu -> addMenu(LBL_TAG_TAGS, 'TagList', "_side('TagList')"); 
     97        $GLOBALS['rss'] -> sideMenu -> addMenu(__('Feeds'),'FeedList' , "_side('FeedList')"); 
     98        $GLOBALS['rss'] -> sideMenu -> addMenu(__('Categories'), 'CatList', "_side('CatList')"); 
     99        $GLOBALS['rss'] -> sideMenu -> addMenu(__('Tags'), 'TagList', "_side('TagList')"); 
    100100    } 
    101101 
  • branches/multiuser/cls/items.php

    r1541 r1604  
    296296            ." left join " 
    297297            .getTable("item") ." i " 
    298             ." on (i2u.fkiid = i.id) left join " 
    299             //." left join " 
    300             //. getTable("rating") ." r on (i.id = r.iid), " 
    301             .getTable('channels2user') ." c2u on (i.cid=c2u.fkcid) left join " 
    302             .getTable("channels")." c on (c2u.fkcid=c.id) left join " 
    303             .getTable("folders") ." f on (c2u.parent=f.id) "; 
     298            ." on (i2u.fkiid = i.id)" 
     299            //." inner join " . getTable("rating") ." r on (i.id = r.iid), " 
     300            . " inner join " . getTable('channels2user') ." c2u on (i.cid=c2u.fkcid)" 
     301            . " inner join " . getTable("channels")." c on (c2u.fkcid=c.id)" 
     302            . " inner join " . getTable("folders") ." f on (c2u.parent=f.id) "; 
    304303 
    305304 
     
    428427            // fetch the tags for the items; 
    429428            $sql = "select t.tag,m.fid,i.cid " 
    430             ." from " 
    431             .getTable('tag')." t, " 
    432             .getTable('metatag')." m, " 
    433             .getTable('item')." i " 
    434             ." where m.tid = t.id and i.id=m.fid and m.ttype = 'item' and m.fid in (".implode(",", $this -> iids).")"; 
     429            ." from " . getTable('tag')." t " 
     430            . " inner join " . getTable('metatag')." m on m.tid = t.id" 
     431            . " inner join " . getTable('item')." i on i.id = m.fid" 
     432            ." where m.ttype = 'item' and m.fid in (".implode(",", $this -> iids).")"; 
    435433             
    436434            $res = $GLOBALS['rss_db']->rss_query($sql); 
     
    502500    var $_parent; 
    503501    var $pages; 
    504     function ItemListNavigation($il) { 
     502    function ItemListNavigation(&$il) { 
    505503        $this -> _parent = $il; 
    506504        $this -> pages = array(); 
     
    552550            . $this -> _sqlActualWhere; 
    553551        list($this -> numItems) = rss_fetch_row(rss_query($sql)); 
    554         $this -> navigation = new ItemListNavigation(& $this); 
     552        $this -> navigation = new ItemListNavigation($this); 
    555553    } 
    556554} 
  • branches/multiuser/cls/l10n.php

    r1479 r1604  
    2828rss_require('extlib/l10n/streams.php'); 
    2929rss_require('extlib/l10n/gettext.php'); 
    30  
     30define('RSS_LOCALE_COOKIE','rss_preferred_locale'); 
    3131class RSSl10n { 
    3232     
    3333    var $l10n; 
    3434    var $cache; 
     35    var $locale; 
     36    var $isolang; 
    3537     
    36     function RSSl10n($locale) { 
    37         $path = GREGARIUS_HOME .'/intl/' . $locale . '/LC_MESSAGES/messages.mo'; 
     38    function RSSl10n() { 
     39        $this -> locale = preg_replace('#[^a-zA-Z_]#','',$this -> __detectUserLang()); 
     40         
     41        $ll=explode('_',$this -> locale); 
     42        $this->isloang=$ll[0].'-'.strtoupper($ll[1]); 
     43         
     44        if (function_exists('version_compare') && version_compare("4.3.0",PHP_VERSION, "<=") && preg_match('#([a-z]{2})_([A-Z]{2})#',$this -> locale,$m)) { 
     45            $locales=array( 
     46                $m[0].'UTF-8', 
     47                $m[0].'utf-8', 
     48                $m[0], 
     49                $m[1].'_'.strtoupper($m[1]), 
     50                $m[1], 
     51                $m[2] 
     52            ); 
     53            setlocale(LC_ALL, $locales);     
     54        } else { 
     55            setlocale(LC_ALL, $this -> locale); 
     56        } 
     57     
     58        $path = GREGARIUS_HOME .'/intl/' . $this -> locale . '/LC_MESSAGES/messages.mo'; 
    3859        $streamer = new FileReader($path); 
    3960        $this -> l10n = new gettext_reader($streamer); 
     
    4162    } 
    4263     
    43     function translate($msg) { 
    44         if (isset($this -> cache[$msg])) { 
    45             return $this -> cache[$msg]; 
     64    function translate($msg, $cnt = null) { 
     65        if (isset($this -> cache[$msg . $cnt])) { 
     66            return $this -> cache[$msg . $cnt]; 
    4667        }  
    47         $ret = $this -> l10n -> translate($msg); 
    48         $this -> cache[$msg] = $ret; 
     68        $ret = $this -> l10n -> translate($msg, $cnt); 
     69        $this -> cache[$msg . $cnt] = $ret; 
    4970        return $ret; 
    50          
    5171    } 
     72     
     73    function getLocale() { 
     74        return $this -> locale; 
     75    } 
     76    function getISOLang() { 
     77        return $this ->isloang; 
     78    } 
     79    /** 
     80     * Detect users preferred language. Losely based on http://grep.be/data/accept-to-gettext.inc 
     81     */ 
     82    function __detectUserLang() { 
     83       if (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_[A-Z]{2}$#',$_REQUEST['lang']) && file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang'])) { 
     84            setcookie(RSS_LOCALE_COOKIE,$_REQUEST['lang'],time()+3600*6,getPath()); 
     85            return  $_REQUEST['lang']; 
     86        } elseif (isset($_COOKIE[RSS_LOCALE_COOKIE])) { 
     87            return trim($_COOKIE[RSS_LOCALE_COOKIE]); 
     88       } elseif (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { 
     89            $alparts=@preg_split("/,/",$_SERVER['HTTP_ACCEPT_LANGUAGE']); 
     90            foreach($alparts as $part) { 
     91                $part=trim($part); 
     92                if(preg_match("/;/", $part)) { 
     93                    $lang=@preg_split("/;/",$part); 
     94                    $ll = $lang[0]; 
     95                } else { 
     96                    $ll = $part; 
     97                } 
     98 
     99                if (preg_match('#^([a-z]{2})[\-_]?([a-z]{2})?$#i',$ll,$pm)) { 
     100                    $ret =null; 
     101                    if (isset($pm[2])){ 
     102                        if (file_exists(GREGARIUS_HOME .'intl/'.$pm[1] ."_".strtoupper($pm[2]))) { 
     103                            // xx-yy -> xx_YY 
     104                            $ret= $pm[1] ."_".strtoupper($pm[2]); 
     105                        } elseif(file_exists(GREGARIUS_HOME .'intl/'.$pm[1] ."_".strtoupper($pm[1]))) { 
     106                            // xx-yy -> xx_XX 
     107                            $ret= $pm[1] ."_".strtoupper($pm[1]); 
     108                        } 
     109                    } elseif(file_exists(GREGARIUS_HOME .'intl/'.$pm[1] ."_".strtoupper($pm[1]))) { 
     110                        // xx  -> xx_XX 
     111                        $ret= $pm[1] ."_".strtoupper($pm[1]); 
     112                    } elseif($pm[1] == 'en') { 
     113                        // ugly: a better way would be to look up all the available locales 
     114                        // and match against that list 
     115                        $ret='en_US'; 
     116                    } 
     117                    if ($ret) { 
     118                        // remember the detected locale for a couple hours 
     119                        setcookie(RSS_LOCALE_COOKIE,$ret,time()+3600*6,getPath()); 
     120                        return $ret; 
     121                    } 
     122                } 
     123                 
     124            } 
     125        } 
     126        // If everything fails, return the user selected language 
     127        return getConfig('rss.output.lang'); 
     128    } 
    52129} 
     130     
    53131 
    54 function __($msg) { 
    55     return $GLOBALS['rssl10n'] -> translate($msg); 
     132 
     133function __($msg, $cnt = null) { 
     134    return $GLOBALS['rssl10n'] -> translate($msg, $cnt); 
    56135} 
    57136?> 
  • branches/multiuser/cls/nav.php

    r1347 r1604  
    6060    function Navigation() { 
    6161     
    62         $this->appendNavItem(getPath(),LBL_NAV_HOME,LOCATION_HOME); 
    63         $this->appendNavItem(getPath().'update.php',LBL_NAV_UPDATE,LOCATION_UPDATE); 
    64         $this->appendNavItem(getPath().'search.php',LBL_NAV_SEARCH,LOCATION_SEARCH); 
    65         $this->appendNavItem(getPath().'admin/',LBL_NAV_CHANNEL_ADMIN,LOCATION_ADMIN); 
     62        $this->appendNavItem(getPath(),__('<span>H</span>ome'),LOCATION_HOME); 
     63        if (!getConfig("rss.config.restrictrefresh")) { 
     64            $this->appendNavItem(getPath().'update.php',__('<span>R</span>efresh'),LOCATION_UPDATE); 
     65        } 
     66        $this->appendNavItem(getPath().'search.php',__('<span>S</span>earch'),LOCATION_SEARCH); 
     67        $this->appendNavItem(getPath().'admin/',__('A<span>d</span>min'),LOCATION_ADMIN); 
    6668         
    6769        if (($an = rss_plugin_hook('rss.plugins.afternav', null)) != null) { 
  • branches/multiuser/cls/search.php

    r1530 r1604  
    211211        if ($this->resultsPerPage != INFINE_RESULTS && $this->itemCount >  $this->resultsPerPage) { 
    212212            $nav .= "<div class=\"readmore\">"; 
    213             $nav .= LBL_SEARCH_RESULTS; 
     213            $nav .= __('Results: '); 
    214214 
    215215            // first page 
  • branches/multiuser/cls/taglist.php

    r1181 r1604  
    6767    function TagList() { 
    6868        $this -> populate(); 
    69         $this ->    columnTitle = LBL_TAG_TAGS; 
     69        $this ->    columnTitle = __('Tags'); 
    7070        $GLOBALS['rss']-> feedList = $this; 
    7171    } 
     
    8484     
    8585    function getStats() { 
    86         return sprintf(LBL_TAGCOUNT_PF, $this -> countTaggedItems, $this->tagCount); 
     86        return sprintf(__('<strong>%d</strong> tagged items, in <strong>%d</strong> tags'), $this -> countTaggedItems, $this->tagCount); 
    8787    } 
    8888     
  • branches/multiuser/cls/update.php

    r1524 r1604  
    7676 
    7777    function populate($updatePrivateAlso = false) { 
    78         $sql = "select c.id, c.url, c.title from ".getTable("channels") . " c, " 
    79                . getTable('folders') . " f "; 
     78        $sql = "select c.id, c.url, c.title from ".getTable("channels") . " c " 
     79               . " inner join ". getTable('folders') . " f on c.parent = f.id"; 
    8080        $sql .= " where not(c.mode & ".RSS_MODE_DELETED_STATE.") "; 
    81         $sql .= " and c.parent = f.id "; 
    8281 
    8382        if (hidePrivate() && !$updatePrivateAlso) { 
     
    116115        if ($error & MAGPIE_FEED_ORIGIN_CACHE) { 
    117116            if ($error & MAGPIE_FEED_ORIGIN_HTTP_304) { 
    118                 $label = LBL_UPDATE_NOT_MODIFIED; 
     117                $label = __('OK (304 Not modified)'); 
    119118                $cls = ERROR_NOERROR; 
    120119            } 
    121120            elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_TIMEOUT) { 
    122                 $label = LBL_UPDATE_CACHE_TIMEOUT; 
     121                $label = __('HTTP Timeout (Local cache)'); 
    123122                $cls = ERROR_WARNING; 
    124123            } 
    125124            elseif ($error & MAGPIE_FEED_ORIGIN_NOT_FETCHED) { 
    126                 $label = LBL_UPDATE_STATUS_CACHED; 
     125                $label = __('OK (Local cache)'); 
    127126                $cls = ERROR_NOERROR; 
    128127            } 
    129128            elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_404) { 
    130                 $label = LBL_UPDATE_NOT_FOUND; 
     129                $label = __('404 Not Found (Local cache)'); 
    131130                $cls = ERROR_ERROR; 
    132131            } 
     
    137136        } 
    138137        elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_200) { 
    139             $label = LBL_UPDATE_STATUS_OK; 
     138            $label = __('OK (HTTP 200)'); 
    140139            $cls = ERROR_NOERROR; 
    141140        } 
    142141        else { 
    143142            if (is_numeric($error)) { 
    144                 $label = LBL_UPDATE_STATUS_ERROR; 
     143                $label = __('ERROR'); 
    145144                $cls = ERROR_ERROR; 
    146145            } else { 
     
    177176 
    178177        echo 
    179         "<h2>".sprintf(LBL_UPDATE_H2, count($this -> chans))."</h2>\n" 
     178        "<h2>".sprintf(__('Updating %d Feeds...'), count($this -> chans))."</h2>\n" 
    180179        ."<table id=\"updatetable\">\n" 
    181180        ."<tr>\n" 
    182         ."<th class=\"lc\">".LBL_UPDATE_CHANNEL."</th>\n" 
    183         ."<th class=\"mc\">".LBL_UPDATE_STATUS."</th>\n" 
    184         ."<th class=\"rc\">".LBL_UPDATE_UNREAD."</th>\n" 
     181        ."<th class=\"lc\">".__('Feed')."</th>\n" 
     182        ."<th class=\"mc\">".__('Status')."</th>\n" 
     183        ."<th class=\"rc\">".__('New Items')."</th>\n" 
    185184        ."</tr>"; 
    186185 
     
    239238    function render() { 
    240239 
    241         echo "<h2 style=\"margin-bottom:1em;\">". sprintf(LBL_UPDATE_H2,count($this -> chans)) ."</h2>\n"; 
     240        echo "<h2 style=\"margin-bottom:1em;\">". sprintf(__('Updating %d Feeds...'),count($this -> chans)) ."</h2>\n"; 
    242241 
    243242        echo "<table id=\"updatetable\">\n" 
    244243        ."<tr>\n" 
    245         ."<th class=\"lc\">".LBL_UPDATE_CHANNEL."</th>\n" 
    246         ."<th class=\"mc\">".LBL_UPDATE_STATUS."</th>\n" 
    247         ."<th class=\"rc\">".LBL_UPDATE_UNREAD."</th>\n" 
     244        ."<th class=\"lc\">".__('Feed')."</th>\n" 
     245        ."<th class=\"mc\">".__('Status')."</th>\n" 
     246        ."<th class=\"rc\">".__('New Items')."</th>\n" 
    248247        ."</tr>\n"; 
    249248 
     
    296295 
    297296            list($label,$cls) = parent::magpieError($error); 
    298             echo "\n$label, $unread " . LBL_UPDATE_UNREAD . "\n\n"; 
     297            echo "\n$label, $unread " . __('New Items') . "\n\n"; 
    299298            flush(); 
    300299 
     
    325324            $unread = count($unreadIds); 
    326325            list($label,$cls) = parent::magpieError($error); 
    327             echo "\n$label, $unread " . LBL_UPDATE_UNREAD . "<br />"; 
     326            echo "\n$label, $unread " . __('New Items') . "<br />"; 
    328327            flush(); 
    329328    } 
     
    357356                                echo "$title ...\t"; 
    358357                                flush(); 
    359                                 echo "\n$label, $unread " . LBL_UPDATE_UNREAD . "\n\n"; 
     358                                echo "\n$label, $unread " . __('New Items') . "\n\n"; 
    360359                                flush(); 
    361360                        } 
  • branches/multiuser/cls/wrappers/feeds.php

    r1315 r1604  
    6060} 
    6161 
    62 function rss_feeds_folders_unread_count($label=LBL_UNREAD_PF) { 
     62function rss_feeds_folders_unread_count($label=null) { 
     63    if ($label === null) { 
     64        $label=__('<strong id="%s" style="%s">(%d unread)</strong>'); 
     65    } 
    6366    if (array_key_exists($GLOBALS['rss']->currentFeedsFolder->id,$GLOBALS['rss']->feedList->collapsed_folders)) {  
    6467        $sCls = ($GLOBALS['rss']->currentFeedsFolder->isCollapsed?"display:inline":"display:none"); 
     
    6871 
    6972        switch( $GLOBALS['rss']->feedList -> columnTitle ) { 
    70             case LBL_TAG_FOLDERS: 
     73            case __('Categories'): 
    7174                $ret = rss_plugin_hook("rss.plugins.sidemenu.categoryunreadlabel", $ret); 
    7275                break; 
    73             case LBL_H2_CHANNELS: 
     76            case __('Feeds'): 
    7477                $ret = rss_plugin_hook("rss.plugins.sidemenu.folderunreadlabel", $ret); 
    7578                break; 
  • branches/multiuser/cls/wrappers/header.php