Changeset 1604

Show
Ignore:
Timestamp:
10/16/06 06:31:35 (4 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
Files:
54 added
53 modified

Legend:

Unmodified
Added
Removed
  • branches/multiuser/admin/channels.php

    r1595 r1604  
    3737 
    3838function channels() { 
    39     echo "<h2>". LBL_ADMIN_CHANNELS ."</h2>\n"; 
     39    echo "<h2>". __('Feeds:') ."</h2>\n"; 
    4040    echo "<div id=\"admin_channels\">\n"; 
    4141    echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
    4242    echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n"; 
    43     echo "<label for=\"new_channel\">". LBL_ADMIN_CHANNELS_ADD ."</label>\n"; 
     43    echo "<label for=\"new_channel\">". __('Add a feed:') ."</label>\n"; 
    4444    echo "<input type=\"text\" name=\"new_channel\" id=\"new_channel\" value=\"http://\" onmouseover=\"clearOnHover(this);\" onfocus=\"this.select()\" />\n"; 
    4545 
    46     echo "<label for=\"add_channel_to_folder\">". LBL_ADMIN_IN_FOLDER . "</label>\n"; 
     46    echo "<label for=\"add_channel_to_folder\">". __('to folder:') . "</label>\n"; 
    4747    echo rss_toolkit_folders_combo('add_channel_to_folder'); 
    48     echo "<label for=\"channel_tags\">" . LBL_TAG_FOLDERS . ":</label>\n"; 
     48    echo "<label for=\"channel_tags\">" . __('Categories') . ":</label>\n"; 
    4949    echo "<input type=\"text\" name=\"channel_tags\" id=\"channel_tags\" />\n"; 
    50     echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"LBL_ADMIN_ADD\" />\n"; 
    51     echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_ADD ."\" /></p>\n"; 
    52     echo "<p style=\"font-size:small\">".LBL_ADMIN_ADD_CHANNEL_EXPL."</p>"; 
     50    echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_ADD\" />\n"; 
     51    echo "<input type=\"submit\" name=\"action\" value=\"". __('Add') ."\" /></p>\n"; 
     52    echo "<p style=\"font-size:small\">".__('(Enter either the URL of an RSS feed or of a Website whose feed you wish to subscribe to)')."</p>"; 
    5353    echo "</form>\n\n"; 
    5454 
     
    6060                   ."('$b_url'.concat(escape(document.location).replace(/\s/,'%2520'))))"; 
    6161 
    62     echo "<p style=\"font-size:small\">" . LBL_ADMIN_BOOKMARKET_LABEL . " <a class=\"bookmarklet\" href=\"$bookmarklet\">".LBL_ADMIN_BOOKMARKLET_TITLE."</a></p>\n"; 
     62    echo "<p style=\"font-size:small\">" . __('Subscription bookmarklet [<a href="http://www.squarefree.com/bookmarklets/">?</a>]:') . " <a class=\"bookmarklet\" href=\"$bookmarklet\">".__('Subscribe in Gregarius!')."</a></p>\n"; 
    6363 
    6464    // feeds 
     
    8383    ."<tr>\n" 
    8484    ."\t<th><input type=\"checkbox\" id=\"mastercb\" onclick=\"cbtoggle();\" /></th>\n" 
    85     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_TITLE ."</th>\n" 
    86     ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_FOLDER ."</th>\n" 
    87     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_DESCR ."</th>\n" 
    88     ."\t<th>". LBL_TAG_FOLDERS."</th>\n" 
    89     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_FLAGS."</th>\n"; 
     85    ."\t<th>". __('Title') ."</th>\n" 
     86    ."\t<th class=\"cntr\">". __('Folder') ."</th>\n" 
     87    ."\t<th>". __('Description') ."</th>\n" 
     88    ."\t<th>". __('Categories')."</th>\n" 
     89    ."\t<th>". __('Flags')."</th>\n"; 
    9090 
    9191    if (getConfig('rss.config.absoluteordering')) { 
    92         echo "\t<th>".LBL_ADMIN_CHANNELS_HEADING_MOVE."</th>\n"; 
    93     } 
    94  
    95     echo "\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_ACTION ."</th>\n" 
     92        echo "\t<th>".__('Move')."</th>\n"; 
     93    } 
     94 
     95    echo "\t<th class=\"cntr\">". __('Action') ."</th>\n" 
    9696    ."</tr>\n"; 
    9797 
     
    118118        } 
    119119 
    120         $parentLabel = $parent == ''? LBL_HOME_FOLDER:$parent; 
     120        $parentLabel = $parent == ''? __('Root'):$parent; 
    121121 
    122122        $class_ = (($cntr++ % 2 == 0)?"even":"odd"); 
     
    171171        if (getConfig('rss.config.absoluteordering')) { 
    172172            echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
    173             ."&amp;action=". CST_ADMIN_MOVE_UP_ACTION. "&amp;cid=$id\">". LBL_ADMIN_MOVE_UP 
     173            ."&amp;action=". CST_ADMIN_MOVE_UP_ACTION. "&amp;cid=$id\">". __('&uarr;') 
    174174            ."</a>&nbsp;-&nbsp;<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
    175             ."&amp;action=". CST_ADMIN_MOVE_DOWN_ACTION ."&amp;cid=$id\">".LBL_ADMIN_MOVE_DOWN ."</a></td>\n"; 
     175            ."&amp;action=". CST_ADMIN_MOVE_DOWN_ACTION ."&amp;cid=$id\">".__('&darr;') ."</a></td>\n"; 
    176176        } 
    177177        echo "\t<td class=\"cntr\"><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
    178178        ."&amp;".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 
    179         ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;cid=$id\">" . LBL_ADMIN_EDIT 
     179        ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;cid=$id\">" . __('edit') 
    180180        ."</a>|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_CHANNEL 
    181181        ."&amp;".CST_ADMIN_VIEW."=". CST_ADMIN_DOMAIN_CHANNEL 
    182         ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;cid=$id\">" . LBL_ADMIN_DELETE ."</a></td>\n" 
     182        ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;cid=$id\">" . __('delete') ."</a></td>\n" 
    183183        ."</tr>\n"; 
    184184    } 
     
    189189    ."<legend>Selected...</legend>\n" 
    190190    ."<p>\n" 
    191     ."<label for=\"me_folder\">".LBL_ADMIN_CHANNEL_FOLDER."</label>\n" 
     191    ."<label for=\"me_folder\">".__('In folder:')."</label>\n" 
    192192    .rss_toolkit_folders_combo('me_folder',null); 
    193193 
    194194    echo 
    195     "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"".LBL_ADMIN_CHANNELS_HEADING_MOVE."\" />\n" 
     195    "<input type=\"submit\" id=\"me_move_to_folder\" name=\"me_move_to_folder\" value=\"".__('Move')."\" />\n" 
    196196 
    197197    ."<span class=\"vr\">&nbsp;</span>" 
    198198 
    199     ."<label>".LBL_ADMIN_STATE."</label>\n" 
     199    ."<label>".__('State:')."</label>\n" 
    200200    ."<input type=\"checkbox\" name=\"me_deprecated\" id=\"me_deprecated\" value=\"".RSS_MODE_DELETED_STATE."\" />\n" 
    201     ."<label for=\"me_deprecated\">".LBL_DEPRECATED."</label>\n" 
     201    ."<label for=\"me_deprecated\">".__('Deprecated')."</label>\n" 
    202202 
    203203    ."<input type=\"checkbox\" name=\"me_private\" id=\"me_private\" value=\"".RSS_MODE_PRIVATE_STATE."\" />\n" 
    204     ."<label for=\"me_private\">".LBL_PRIVATE."</label>\n" 
    205  
    206     ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"".LBL_ADMIN_STATE_SET."\" />\n" 
     204    ."<label for=\"me_private\">".__('Private')."</label>\n" 
     205 
     206    ."<input type=\"submit\" id=\"me_state\" name=\"me_state\" value=\"".__('Set')."\" />\n" 
    207207 
    208208    ."<span class=\"vr\">&nbsp;</span>" 
    209209 
    210     ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".LBL_ADMIN_DELETE2."\" />\n" 
     210    ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" 
    211211    ."<input type=\"checkbox\" name=\"me_do_delete\" id=\"me_do_delete\" value=\"1\" />\n" 
    212     ."<label for=\"me_do_delete\">".LBL_ADMIN_IM_SURE."</label>\n" 
     212    ."<label for=\"me_do_delete\">".__("I'm sure!")."</label>\n" 
    213213 
    214214 
     
    249249    switch ($__action__) { 
    250250 
    251     case LBL_ADMIN_ADD: 
    252     case 'LBL_ADMIN_ADD': 
     251    case __('Add'): 
     252    case 'ACT_ADMIN_ADD': 
    253253    case 'Add': 
    254254 
     
    279279                $newCid = $ret[0]; 
    280280                rss_error(sprintf( 
    281                               LBL_ADMIN_OPML_IMPORT_FEED_INFO, 
     281                              __('Adding %s to %s... '), 
    282282                              htmlentities($label),"/$flabel") 
    283                           . LBL_ADMIN_OK 
     283                          . __('OK') 
    284284                          . "&nbsp;[<a href=\"".getPath()."admin/index.php?domain=".CST_ADMIN_DOMAIN_CHANNEL 
    285285                          ."&amp;action=edit&amp;cid=$newCid\">" 
    286                           . LBL_ADMIN_EDIT 
     286                          . __('edit') 
    287287                          ."</a>]", 
    288288                          RSS_ERROR_ERROR,true); 
     
    307307                            $newCid = $ret[0]; 
    308308                            rss_error(sprintf( 
    309                                           LBL_ADMIN_OPML_IMPORT_FEED_INFO, 
     309                                          __('Adding %s to %s... '), 
    310310                                          htmlentities($label),"/$flabel") 
    311                                       . LBL_ADMIN_OK 
     311                                      . __('OK') 
    312312                                      . "&nbsp;[<a href=\"".getPath()."admin/index.php?domain=" 
    313313                                      .CST_ADMIN_DOMAIN_CHANNEL 
    314314                                      ."&amp;action=edit&amp;cid=$newCid\">" 
    315                                       . LBL_ADMIN_EDIT 
     315                                      . __('edit') 
    316316                                      ."</a>]", 
    317317                                      RSS_ERROR_ERROR,true); 
     
    327327                        // multiple feeds in the channel 
    328328                        echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    329                         ."<p>".sprintf(LBL_ADMIN_FEEDS,$label,$label)."</p>\n"; 
     329                        ."<p>".sprintf(__('The following feeds were found in <a href="%s">%s</a>, which one would you like to subscribe?'),$label,$label)."</p>\n"; 
    330330                        $cnt = 0; 
    331331                        while(list($id,$feedarr) = each($feeds)) { 
     
    366366                        echo "<p><input type=\"hidden\" name=\"add_channel_to_folder\" value=\"$fid\" />\n" 
    367367                        ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n" 
    368                         ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"LBL_ADMIN_ADD\" />\n" 
    369                         ."<input type=\"submit\" class=\"indent\" name=\"action\" value=\"". LBL_ADMIN_ADD ."\" />\n" 
     368                        ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_ADD\" />\n" 
     369                        ."<input type=\"submit\" class=\"indent\" name=\"action\" value=\"". __('Add') ."\" />\n" 
    370370                        ."</p>\n</form>\n\n"; 
    371371                    } 
     
    377377            } 
    378378            else { 
    379                 rss_error(sprintf(LBL_ADMIN_BAD_RSS_URL,$label), RSS_ERROR_ERROR,true); 
     379                rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$label), RSS_ERROR_ERROR,true); 
    380380                $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 
    381381            } 
    382382        } else { 
    383             rss_error(sprintf(LBL_ADMIN_BAD_RSS_URL,$label), RSS_ERROR_ERROR,true); 
     383            rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$label), RSS_ERROR_ERROR,true); 
    384384            $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 
    385385        } 
     
    394394    case CST_ADMIN_DELETE_ACTION: 
    395395        $id = sanitize($_REQUEST['cid'],RSS_SANITIZER_NUMERIC); 
    396         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     396        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    397397            $rs = rss_query("select distinct id from " .getTable("item") . " where cid=$id"); 
    398398            $ids = array(); 
     
    419419            $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 
    420420        } 
    421         elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) { 
     421        elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 
    422422            $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 
    423423        } 
     
    427427            echo "<form class=\"box\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    428428            ."<p class=\"error\">"; 
    429             printf(LBL_ADMIN_ARE_YOU_SURE,$cname); 
     429            printf(__("Are you sure you wish to delete '%s'?"),$cname); 
    430430            echo "</p>\n" 
    431             ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_NO ."\" />\n" 
    432             ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_YES ."\" />\n" 
     431            ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('No') ."\" />\n" 
     432            ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('Yes') ."\" />\n" 
    433433            ."<input type=\"hidden\" name=\"cid\" value=\"$id\" />\n" 
    434434            ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\" />\n" 
     
    440440 
    441441 
    442     case LBL_ADMIN_IMPORT: 
    443     case 'LBL_ADMIN_IMPORT': 
     442    case __('Import'): 
     443    case 'ACT_ADMIN_IMPORT': 
    444444 
    445445 
     
    499499 
    500500            } else { 
    501                 $prev_folder = LBL_HOME_FOLDER; 
     501                $prev_folder = __('Root'); 
    502502                $fid = 0; 
    503503            } 
     
    531531                    if ($u__) { 
    532532 
    533                         echo "<li><p>" . sprintf(LBL_ADMIN_OPML_IMPORT_FEED_INFO,$t__,$f__); 
     533                        echo "<li><p>" . sprintf(__('Adding %s to %s... '),$t__,$f__); 
    534534                        flush(); 
    535535                        list($retcde, $retmsg) = add_channel($u__, $fid, $t__, $d__); 
     
    543543            } 
    544544 
    545             echo "</ul>\n<p><b>".LBL_TITLE_UPDATING ."...</b></p>\n"; 
     545            echo "</ul>\n<p><b>".__('Updating') ."...</b></p>\n"; 
    546546            echo "</div>\n"; 
    547547            flush(); 
     
    615615 
    616616        if ($url == '' || substr($url,0,4) != "http") { 
    617             rss_error(sprintf(LBL_ADMIN_BAD_RSS_URL,$url), RSS_ERROR_ERROR,true); 
     617            rss_error(sprintf(__("I'm sorry, I don't think I can handle this URL: '%s'"),$url), RSS_ERROR_ERROR,true); 
    618618            $ret__ = CST_ADMIN_DOMAIN_CHANNEL; 
    619619            break; 
     
    741741        break; 
    742742 
    743  
     743        case 'dump': 
     744            // Make sure this is a POST 
     745            if(!isset($_POST['dumpact'])) { 
     746                die('Sorry, you can\'t access this via a GET'); 
     747            } 
     748            $tbl = array('"','&quot;'); 
     749            error_reporting(E_ALL); 
     750            rss_require('schema.php'); 
     751            $tables=getExpectedTables(); 
     752            unset($tables['cache']); 
     753            //$tables=array('channels','tag','config'); 
     754            $bfr=''; 
     755            $bfr .= '<'.'?xml version="1.0" encoding="UTF-8"?'.'>'."\n"; 
     756            $bfr .= '<dump prefix="'.getTable('').'" date="'.date('r').'">'."\n"; 
     757            foreach($tables as $table => $prefixed) { 
     758                $rs = rss_query("select * from $prefixed"); 
     759                $bfr .="<$table>\n"; 
     760                while($row=rss_fetch_assoc($rs)) { 
     761                    $r="<row "; 
     762                    foreach($row as $key => $val) { 
     763                        $val=htmlspecialchars($val); 
     764                        $r.=" $key=\"$val\" "; 
     765                    } 
     766                    $r .= "/>\n"; 
     767                    $bfr .=$r; 
     768                } 
     769                $bfr .="</$table>\n"; 
     770            } 
     771            $bfr .='</dump>'."\n"; 
     772            $gzdata = gzencode($bfr, 9); 
     773 
     774 
     775            // Delete the output buffer. This is probably a bad thing to do, if the ob'ing is turned off. 
     776            // e.g. data was already sent to the brwoser. 
     777            while (@ob_end_clean()); 
     778 
     779            // Send the dump to the browser: 
     780            header("Pragma: public"); // required 
     781            header("Expires: 0"); 
     782            header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
     783            header("Connection: close"); 
     784            header("Content-Transfer-Encoding: binary"); 
     785            header("Content-Length: " . strlen($gzdata)); 
     786            header('Content-type: application/x-gzip'); 
     787            header('Content-disposition: inline; filename="gregarius.dump.'.date('MjSY').'.xml.gz"'); 
     788 
     789            die($gzdata); 
     790 
     791            break; 
    744792    default: 
    745793        break; 
     
    764812 
    765813    echo "<div>\n"; 
    766     echo "\n\n<h2>".LBL_ADMIN_CHANNEL_EDIT_CHANNEL." '$title'</h2>\n"; 
     814    echo "\n\n<h2>".__('Edit the feed ')." '$title'</h2>\n"; 
    767815 
    768816    echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."#fa$cid\" id=\"channeledit\">\n"; 
     
    770818    // Timestamps 
    771819    if(!empty($daterefreshed)) { 
    772       echo "<p><label>" . LBL_ADDED . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 
    773                     ."<p><label>" . LBL_LAST_UPDATE . ": ".date("M-d-Y H:i", strtotime($daterefreshed))."</label></p>\n"; 
     820      echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 
     821                    ."<p><label>" . __('Last Update') . ": ".date("M-d-Y H:i", strtotime($daterefreshed))."</label></p>\n"; 
    774822    } else { 
    775       echo "<p><label>" . LBL_ADDED . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 
    776                     ."<p><label>" . LBL_LAST_UPDATE . ": " . LBL_FOOTER_LAST_MODIF_NEVER . "</label></p>\n"; 
     823      echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 
     824                    ."<p><label>" . __('Last Update') . ": " . __('Never') . "</label></p>\n"; 
    777825    } 
    778826    // Item name 
    779     echo "<p><label for=\"c_name\">". LBL_ADMIN_CHANNEL_NAME ."</label>\n" 
     827    echo "<p><label for=\"c_name\">". __('Title:') ."</label>\n" 
    780828    ."<input type=\"text\" id=\"c_name\" name=\"c_name\" value=\"$title\" />" 
    781829    ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CHANNEL."\" />\n" 
     
    786834 
    787835    // RSS URL 
    788     ."<p><label for=\"c_url\">". LBL_ADMIN_CHANNEL_RSS_URL ."</label>\n" 
    789     ."<a href=\"$url\">" . LBL_VISIT . "</a>\n" 
     836    ."<p><label for=\"c_url\">". __('RSS URL:') ."</label>\n" 
     837    ."<a href=\"$url\">" . __('(visit)') . "</a>\n" 
    790838    ."<input type=\"text\" id=\"c_url\" name=\"c_url\" value=\"$url\" /></p>" 
    791839 
    792840    // Site URL 
    793     ."<p><label for=\"c_siteurl\">". LBL_ADMIN_CHANNEL_SITE_URL ."</label>\n" 
    794     ."<a href=\"$siteurl\">" . LBL_VISIT . "</a>\n" 
     841    ."<p><label for=\"c_siteurl\">". __('Site URL:') ."</label>\n" 
     842    ."<a href=\"$siteurl\">" . __('(visit)') . "</a>\n" 
    795843    ."<input type=\"text\" id=\"c_siteurl\" name=\"c_siteurl\" value=\"$siteurl\" /></p>" 
    796844 
    797845    // Folder 
    798     ."<p><label for=\"c_parent\">". LBL_ADMIN_CHANNEL_FOLDER ."</label>\n" 
     846    ."<p><label for=\"c_parent\">". __('In folder:') ."</label>\n" 
    799847 
    800848    .rss_toolkit_folders_combo('c_parent',$parent) 
     
    802850 
    803851    // Tags 
    804     echo "<p><label for=\"c_tags\">". LBL_TAG_FOLDERS . ":</label>\n" 
     852    echo "<p><label for=\"c_tags\">". __('Categories') . ":</label>\n" 
    805853    ."<input type=\"text\" id=\"c_tags\" name=\"c_tags\" value=\"$tags\" /></p>"; 
    806854 
     
    826874    ."<input style=\"display:inline\" type=\"checkbox\" id=\"c_private\" " 
    827875    ." name=\"c_private\" value=\"1\"$pchk />\n" 
    828     ."<label for=\"c_private\">". LBL_ADMIN_CHANNEL_PRIVATE ."</label>\n" 
     876    ."<label for=\"c_private\">". __('This feed is <strong>private</strong>, only admins see it.') ."</label>\n" 
    829877    ."<input type=\"hidden\" name=\"old_priv\" value=\"$old_priv\" />\n" 
    830878    ."</p>\n"; 
     
    834882    ."<input style=\"display:inline\" type=\"checkbox\" id=\"c_deleted\" " 
    835883    ." name=\"c_deleted\" value=\"1\"$dchk />\n" 
    836     ."<label for=\"c_deleted\">". LBL_ADMIN_CHANNEL_DELETED ."</label>\n" 
     884    ."<label for=\"c_deleted\">". __("This feed is <strong>deprecated</strong>, it won't be updated anymore and won't be visible in the feeds column.") ."</label>\n" 
    837885    ."<input type=\"hidden\" name=\"old_del\" value=\"$old_del\" />\n" 
    838886    ."</p>\n"; 
     
    841889    // Description 
    842890    $descr = strip_tags($descr); 
    843     echo "<p><label for=\"c_descr\">". LBL_ADMIN_CHANNEL_DESCR ."</label>\n" 
     891    echo "<p><label for=\"c_descr\">". __('Description:') ."</label>\n" 
    844892    ."<input type=\"text\" id=\"c_descr\" name=\"c_descr\" value=\"$descr\" /></p>\n"; 
    845893 
    846894    // Icon 
    847895    if (getConfig('rss.output.showfavicons')) { 
    848         echo "<p><label for=\"c_icon\">" . LBL_ADMIN_CHANNEL_ICON ."</label>\n"; 
     896        echo "<p><label for=\"c_icon\">" . __('Shown favicon:') ."</label>\n"; 
    849897 
    850898        if (trim($icon) != "") { 
     
    853901            } 
    854902            echo "<img src=\"$icon\" alt=\"$title\" class=\"favicon\" width=\"16\" height=\"16\" />\n"; 
    855             echo "<span>" . LBL_CLEAR_FOR_NONE ."</span>"; 
     903            echo "<span>" . __('(Leave blank for no icon)') ."</span>"; 
    856904        } 
    857905 
     
    908956 
    909957 
    910     echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". LBL_ADMIN_SUBMIT_CHANGES ."\" /></p>"; 
     958    echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\" /></p>"; 
    911959 
    912960    echo "</form></div>\n"; 
  • branches/multiuser/admin/config.php

    r1388 r1604  
    2929 
    3030function config() { 
    31     echo "<h2 class=\"trigger\">".LBL_ADMIN_CONFIG."</h2>\n" 
     31    echo "<h2 class=\"trigger\">".__('Configuration:')."</h2>\n" 
    3232    ."<div id=\"admin_config\" class=\"trigger\">\n"; 
    3333 
     
    6565    } 
    6666    echo "<tr>\n" 
    67     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_KEY ."</th>\n" 
    68     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_VALUE ."</th>\n" 
    69     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_DESCR ."</th>\n" 
    70     ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_ACTION ."</th>\n" 
     67    ."\t<th>". __('Key') ."</th>\n" 
     68    ."\t<th>". __('Value') ."</th>\n" 
     69    ."\t<th>". __('Description') ."</th>\n" 
     70    ."\t<th class=\"cntr\">". __('Action') ."</th>\n" 
    7171    ."</tr>\n"; 
    7272} 
     
    106106    case 'rss.output.lang': 
    107107        $arr = getLanguages(); 
    108         echo $arr[getConfig('rss.output.lang')]; 
     108        if (isset($arr[getConfig('rss.output.lang')]['language'])) { 
     109            echo $arr[getConfig('rss.output.lang')]['language']; 
     110        } else { 
     111            echo getConfig('rss.output.lang'); 
     112        } 
    109113        break; 
    110114    case 'rss.config.tzoffset': 
     
    154158    ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;key=".$row['key_'] 
    155159    ."&amp;".CST_ADMIN_VIEW."=". $adminDomain 
    156     ."$extraLinkText\">" . LBL_ADMIN_EDIT 
     160    ."$extraLinkText\">" . __('edit') 
    157161    ."</a>"; 
    158162 
     
    161165 
    162166        ."<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". $adminDomain 
    163         ."&amp;action=". CST_ADMIN_DEFAULT_ACTION. "&amp;key=".$row['key_']."$extraLinkText\">" . LBL_ADMIN_DEFAULT 
     167        ."&amp;action=". CST_ADMIN_DEFAULT_ACTION. "&amp;key=".$row['key_']."$extraLinkText\">" . __('default') 
    164168        ."</a>"; 
    165169    } 
     
    184188    case 'CST_ADMIN_DEFAULT_ACTION': 
    185189        if (!array_key_exists('key',$_REQUEST)) { 
    186             rss_error('Invalid config key specified.', RSS_ERROR_ERROR,true); 
     190            rss_error(__('Invalid config key specified.'), RSS_ERROR_ERROR,true); 
    187191            break; 
    188192        } 
     
    194198 
    195199        if ($value == $default) { 
    196             rss_error("The value for '$key' is the same as its default value!", RSS_ERROR_ERROR,true); 
    197             break; 
    198         } 
    199  
    200         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     200            rss_error(__("The value for '$key' is the same as its default value!"), RSS_ERROR_ERROR,true); 
     201            break; 
     202        } 
     203 
     204        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    201205            rss_query("update " . getTable('config') ." set value_=default_ where key_='$key'" ); 
    202206            rss_invalidate_cache(); 
    203207        } 
    204         elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) { 
     208        elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 
    205209            //nop 
    206210        } 
     
    228232 
    229233        echo "<p style=\"display:inline\">\n"; 
    230         echo (isset($preview)?"<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_PREVIEW_CHANGES ."\"" 
     234        echo (isset($preview)?"<input type=\"submit\" name=\"action\" value=\"". __('Preview') ."\"" 
    231235      .($onclickaction?" onclick=\"$onclickaction\"":"") ." />\n":""); 
    232         echo "<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"LBL_ADMIN_SUBMIT_CHANGES\" />"; 
    233  
    234         echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_SUBMIT_CHANGES ."\"" 
     236        echo "<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\" />"; 
     237 
     238        echo "<input type=\"submit\" name=\"action\" value=\"". __('Submit Changes') ."\"" 
    235239        .($onclickaction?" onclick=\"$onclickaction\"":"") 
    236240        ." /><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CONFIG ."\"/>\n</p></form>\n"; 
     
    239243        echo "<form style=\"display:inline\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    240244        ."<p style=\"display:inline\">\n<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"". CST_ADMIN_DOMAIN_CONFIG ."\"/>\n" 
    241         ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"LBL_ADMIN_SUBMIT_CANCEL\" />" 
    242         ."<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_CANCEL ."\"/></p></form>\n" 
     245        ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"ACT_ADMIN_SUBMIT_CANCEL\" />" 
     246        ."<input type=\"submit\" name=\"action\" value=\"". __('Cancel') ."\"/></p></form>\n" 
    243247        ."\n\n</div>\n"; 
    244248 
     
    246250        break; 
    247251 
    248     case LBL_ADMIN_PREVIEW_CHANGES: 
    249     case 'LBL_ADMIN_PREVIEW_CHANGES': 
     252    case __('Preview'): 
     253    case 'ACT_ADMIN_PREVIEW_CHANGES': 
    250254        rss_error('fixme: preview not yet implemented', RSS_ERROR_ERROR,true); 
    251255        break; 
    252256 
    253     case LBL_ADMIN_SUBMIT_CHANGES: 
    254     case 'LBL_ADMIN_SUBMIT_CHANGES': 
     257    case __('Submit Changes'): 
     258    case 'ACT_ADMIN_SUBMIT_CHANGES': 
    255259 
    256260        $key = sanitize($_POST['key'],RSS_SANITIZER_NO_SPACES|RSS_SANITIZER_SIMPLE_SQL); 
     
    298302        case 'rss.output.lang': 
    299303            $langs = getLanguages(); 
     304 
    300305            $codes = array_keys($langs); 
    301306            $out_val = implode(',',$codes); 
     
    319324            case 'num': 
    320325                if (!is_numeric($value)) { 
    321                     rss_error("Oops, I was expecting a numeric value, got '$value' instead!", RSS_ERROR_ERROR,true); 
     326                    rss_error(__("Oops, I was expecting a numeric value, got '$value' instead!"), RSS_ERROR_ERROR,true); 
    322327                    break; 
    323328                } 
     
    325330                break; 
    326331            case 'boolean': 
    327                 if ($value != LBL_ADMIN_TRUE && $value != LBL_ADMIN_FALSE) { 
    328                     rss_error('Oops, invalid value for ' . $key .": " . $value, RSS_ERROR_ERROR,true); 
     332                if ($value != __('True') && $value != __('False')) { 
     333                    rss_error(__("Oops, invalid value for $key : $value"), RSS_ERROR_ERROR,true); 
    329334                    break; 
    330335                } 
    331336                $sql = "update " . getTable('config') . " set value_='" 
    332                        .($value == LBL_ADMIN_TRUE ? 'true':'false') ."'" 
     337                       .($value == __('True') ? 'true':'false') ."'" 
    333338                       ." where key_='$key'"; 
    334339                break; 
     
    338343 
    339344                if (strstr($oldvalue,$value) === FALSE) { 
    340                     rss_error("Oops, invalid value '$value' for this config key", RSS_ERROR_ERROR,true); 
     345                    rss_error(__("Oops, invalid value '$value' for this config key"), RSS_ERROR_ERROR,true); 
    341346                    break; 
    342347                } 
     
    357362                           ." where key_='$key'"; 
    358363                } else { 
    359                     rss_error("Oops, invalid value '$value' for this config key", RSS_ERROR_ERROR,true); 
     364                    rss_error(__("Oops, invalid value '$value' for this config key"), RSS_ERROR_ERROR,true); 
    360365                } 
    361366                break; 
    362367            default: 
    363                 rss_error('Ooops, unknown config type: ' . $type, RSS_ERROR_ERROR,true); 
     368                rss_error(__('Ooops, unknown config type: ') . $type, RSS_ERROR_ERROR,true); 
    364369                //var_dump($_REQUEST); 
    365370                break; 
     
    435440 
    436441 
    437         echo "<label for=\"c_value\">". LBL_ADMIN_CONFIG_VALUE ." $key:</label>\n" 
     442        echo "<label for=\"c_value\">". __('Value for') ." $key:</label>\n" 
    438443        ."\t\t<select name=\"value\" id=\"c_value\">\n"; 
    439444        $cntr = 0; 
    440445        $value = ""; 
    441446        $langs = getLanguages(); 
    442         foreach ($langs as $code => $name) { 
     447        foreach ($langs as $code => $info) { 
     448            if (isset($info['language'])) { 
     449                $l=$info['language']; 
     450            } else { 
     451                $l=$code; 
     452            } 
    443453            echo "<option value=\"$code\""; 
    444454            if ($code == $active_lang)   { 
    445455                echo " selected=\"selected\""; 
    446456            } 
    447             echo ">".$langs[$code]."</option>\n"; 
     457            echo ">$l</option>\n"; 
    448458        } 
    449459        echo "</select>\n"; 
     
    455465        case 'string': 
    456466        case 'num': 
    457             echo "<label for=\"c_value\">". LBL_ADMIN_CONFIG_VALUE ." $key:</label>\n" 
     467            echo "<label for=\"c_value\">". __('Value for') ." $key:</label>\n" 
    458468            ."<input type=\"text\" id=\"c_value\" name=\"value\" value=\"$value\"/>"; 
    459469            break; 
    460470        case 'boolean': 
    461             echo LBL_ADMIN_CONFIG_VALUE ." $key:</p><p>"; 
     471            echo __('Value for') ." $key:</p><p>"; 
    462472            echo "<input type=\"radio\" id=\"c_value_true\" name=\"value\"" 
    463473            .($value == 'true' ? " checked=\"checked\"":"") ."" 
    464             ." value=\"".LBL_ADMIN_TRUE."\" " 
     474            ." value=\"".__('True')."\" " 
    465475            ."/>\n" 
    466             ."<label for=\"c_value_true\">" . LBL_ADMIN_TRUE . "</label>\n"; 
     476            ."<label for=\"c_value_true\">" . __('True') . "</label>\n"; 
    467477 
    468478            echo "<input type=\"radio\" id=\"c_value_false\" name=\"value\"" 
    469479            .($value != 'true' ? " checked=\"checked\"":"") ."" 
    470             ." value=\"".LBL_ADMIN_FALSE."\" " 
     480            ." value=\"".__('False')."\" " 
    471481            ."/>\n" 
    472             ."<label for=\"c_value_false\">" . LBL_ADMIN_FALSE . "</label>\n"; 
     482            ."<label for=\"c_value_false\">" . __('False') . "</label>\n"; 
    473483            break; 
    474484        case 'enum': 
    475             echo "<label for=\"c_value\">". LBL_ADMIN_CONFIG_VALUE ." $key:</label>\n" 
     485            echo "<label for=\"c_value\">". __('Value for') ." $key:</label>\n" 
    476486            ."\t\t<select name=\"value\" id=\"c_value\">\n"; 
    477487            $arr = explode(',',$value); 
     
    505515 
    506516    echo "<p class=\"error\">"; 
    507     printf(LBL_ADMIN_ARE_YOU_SURE_DEFAULT,$key,$html_default); 
     517    printf(__("Are you sure you wish to reset the value for %s to its default '%s'?"),$key,$html_default); 
    508518    echo "</p>\n" 
    509     ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_NO ."\"/>\n" 
    510     ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_YES ."\"/>\n" 
     519    ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('No') ."\"/>\n" 
     520    ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('Yes') ."\"/>\n" 
    511521    ."<input type=\"hidden\" name=\"key\" value=\"$key\"/>\n" 
    512522    ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".$adminDomain."\"/>\n" 
  • branches/multiuser/admin/dashboard.php

    r1345 r1604  
    4040        } 
    4141    } 
    42         define ('MAGPIE_FETCH_TIME_OUT',2); 
     42    define ('MAGPIE_FETCH_TIME_OUT',2); 
    4343    define ('MAGPIE_CACHE_AGE', $magpieCacheAge); 
    4444    $rs = rss_query( 
  • branches/multiuser/admin/folders.php

    r1530 r1604  
    2929 
    3030function folders() { 
    31     echo "<h2 class=\"trigger\">".LBL_ADMIN_FOLDERS."</h2>\n" 
     31    echo "<h2 class=\"trigger\">".__('Folders:')."</h2>\n" 
    3232    ."<div id=\"admin_folders\" class=\"trigger\">\n"; 
    3333 
     
    3636    echo "<p><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_FOLDER."\"/>\n"; 
    3737 
    38     echo "<label for=\"new_folder\">".LBL_ADMIN_FOLDERS_ADD."</label>\n" 
     38    echo "<label for=\"new_folder\">".__('Add a folder:')."</label>\n" 
    3939    ."<input type=\"text\" id=\"new_folder\" name=\"new_folder\" value=\"\" />" 
    40     ."<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"LBL_ADMIN_ADD\"/>\n" 
    41     ."<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_ADD ."\"/>\n" 
     40    ."<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_ADD\"/>\n" 
     41    ."<input type=\"submit\" name=\"action\" value=\"". __('Add') ."\"/>\n" 
    4242    ."</p></form>\n\n"; 
    4343 
    4444    echo "<table id=\"foldertable\">\n" 
    4545    ."<tr>\n" 
    46     ."\t<th class=\"cntr\">". LBL_ADMIN_CHANNELS_HEADING_TITLE ."</th>\n"; 
     46    ."\t<th class=\"cntr\">". __('Title') ."</th>\n"; 
    4747 
    4848    if (getConfig('rss.config.absoluteordering')) { 
    49         echo "\t<th>".LBL_ADMIN_CHANNELS_HEADING_MOVE."</th>\n"; 
    50     } 
    51  
    52     echo "\t<th>". LBL_ADMIN_CHANNELS_HEADING_ACTION ."</th>\n" 
     49        echo "\t<th>".__('Move')."</th>\n"; 
     50    } 
     51 
     52    echo "\t<th>". __('Action') ."</th>\n" 
    5353    ."</tr>\n"; 
    5454 
     
    6565    while (list($id, $name) = rss_fetch_row($res)) { 
    6666 
    67         $name = $name == ''? LBL_HOME_FOLDER:$name; 
     67        $name = $name == ''? __('Root'):$name; 
    6868 
    6969        $class_ = (($cntr++ % 2 == 0)?"even":"odd"); 
     
    7878                if ($cntr > 2) { 
    7979                    echo "<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_FOLDER 
    80                     ."&amp;action=". CST_ADMIN_MOVE_UP_ACTION. "&amp;fid=$id\">". LBL_ADMIN_MOVE_UP 
     80                    ."&amp;action=". CST_ADMIN_MOVE_UP_ACTION. "&amp;fid=$id\">". __('&uarr;') 
    8181                    ."</a>&nbsp;-&nbsp;"; 
    8282                } 
    8383                echo "<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_FOLDER 
    84                 ."&amp;action=". CST_ADMIN_MOVE_DOWN_ACTION ."&amp;fid=$id\">".LBL_ADMIN_MOVE_DOWN ."</a>"; 
     84                ."&amp;action=". CST_ADMIN_MOVE_DOWN_ACTION ."&amp;fid=$id\">".__('&darr;') ."</a>"; 
    8585            } else { 
    8686                echo "&nbsp;"; 
     
    9090        } 
    9191        echo "\t<td><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_FOLDER 
    92         ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;fid=$id\">" . LBL_ADMIN_EDIT 
     92        ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;fid=$id\">" . __('edit') 
    9393        ."</a>"; 
    9494        if ($id > 0) { 
    9595            echo "|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_FOLDER 
    96             ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;fid=$id\">" . LBL_ADMIN_DELETE ."</a>"; 
     96            ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;fid=$id\">" . __('delete') ."</a>"; 
    9797        } 
    9898        echo "</td>\n" 
     
    121121 
    122122    // Item name 
    123     ."<label for=\"f_name\">". LBL_ADMIN_FOLDER_NAME ."</label>\n" 
     123    ."<label for=\"f_name\">". __('Folder name:') ."</label>\n" 
    124124    ."<input type=\"text\" id=\"f_name\" name=\"f_name\" value=\"$name\"/></p>"; 
    125125 
    126     echo "<p><input type=\"submit\" name=\"action_\" value=\"". LBL_ADMIN_SUBMIT_CHANGES ."\"/></p>" 
     126    echo "<p><input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\"/></p>" 
    127127    ."</form></div>\n"; 
    128128 
     
    162162 
    163163        if ($fid == 0) { 
    164             rss_error(LBL_ADMIN_ERROR_CANT_DELETE_HOME_FOLDER, RSS_ERROR_ERROR,true); 
     164            rss_error(__("You can't delete the Root folder"), RSS_ERROR_ERROR,true); 
    165165            break; 
    166166        } 
    167167 
    168         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     168        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    169169            $sql = "delete from " . getTable("folders") ." where id=$fid"; 
    170170            rss_query($sql); 
     
    173173            rss_invalidate_cache(); 
    174174        } 
    175         elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) { 
     175        elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 
    176176            // nop; 
    177177        } 
     
    181181            echo "<form class=\"box\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    182182            ."<p class=\"error\">"; 
    183             printf(LBL_ADMIN_ARE_YOU_SURE,$fname); 
     183            printf(__("Are you sure you wish to delete '%s'?"),$fname); 
    184184            echo "</p>\n" 
    185             ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_NO ."\"/>\n" 
    186             ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_YES ."\"/>\n" 
     185            ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('No') ."\"/>\n" 
     186            ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('Yes') ."\"/>\n" 
    187187            ."<input type=\"hidden\" name=\"fid\" value=\"$fid\"/>\n" 
    188188            ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_FOLDER."\"/>\n" 
     
    202202            list($cnt) = rss_fetch_row($res); 
    203203            if ($cnt > 0) { 
    204                 rss_error(sprintf(LBL_ADMIN_CANT_RENAME,$new_label), RSS_ERROR_ERROR,true); 
     204                rss_error(sprintf(__("You can't rename this item '%s' because such an item already exists."),$new_label), RSS_ERROR_ERROR,true); 
    205205                break; 
    206206            } 
     
    210210        break; 
    211211 
    212     case LBL_ADMIN_ADD: 
    213     case 'LBL_ADMIN_ADD': 
     212    case __('Add'): 
     213    case 'ACT_ADMIN_ADD': 
    214214        $label=sanitize($_REQUEST['new_folder'],RSS_SANITIZER_URL); 
    215215        $new_label = rss_real_escape_string($new_label); 
     
    279279 
    280280    if ($exists > 0 && $complainonerror) { 
    281         rss_error(sprintf(LBL_ADMIN_ERROR_CANT_CREATE, $label), RSS_ERROR_ERROR,true); 
     281        rss_error(sprintf(__("Looks like you already have a folder called '%s'!"), $label), RSS_ERROR_ERROR,true); 
    282282        return; 
    283283    } 
  • branches/multiuser/admin/index.php

    r1533 r1604  
    4343require_once('themes.php'); 
    4444require_once('tags.php'); 
    45 require_once('users.php'); 
    4645require_once('../cls/wrappers/toolkit.php'); 
    4746 
     
    9190        } 
    9291        set_admin_pass($admin_uname,$admin_pass); 
    93     } else if(!rss_user_check_user_level(RSS_USER_LEVEL_BASIC)){ 
    94             rss_login_form(); 
    95             exit(); 
     92     } else if(!rss_user_check_user_level(RSS_USER_LEVEL_BASIC)) { 
     93               rss_login_form(); 
     94               exit(); 
    9695    } 
    9796} 
     
    142141                break; 
    143142            case CST_ADMIN_DOMAIN_USERS: 
    144                 $show = users_admin(); 
    145                 break; 
     143        $show = users_admin(); 
     144        break; 
    146145            default: 
    147146                break; 
     
    193192                break; 
    194193            case CST_ADMIN_DOMAIN_USERS: 
    195                 users(); 
    196                 break; 
     194        users(); 
     195        break;              
    197196            default: 
    198197            } 
     
    208207 
    209208    } else { 
    210         rss_error(sprintf(LBL_ADMIN_ERROR_NOT_AUTHORIZED,getPath()), RSS_ERROR_ERROR,true); 
     209        rss_error(sprintf(__('<h1>Not Authorized!</h1> 
     210You are not authorized to access the administration interface. 
     211Please follow <a href="%s">this link</a> back to the main page. 
     212Have  a nice day!'),getPath()), RSS_ERROR_ERROR,true); 
    211213    } 
    212214    echo "</div>\n"; 
     
    225227    foreach (array ( 
    226228                 /* url/id -- internationalized label, defined in intl/* */ 
    227                  array (CST_ADMIN_DOMAIN_DASHBOARD, LBL_ADMIN_DASHBOARD), 
    228                  array (CST_ADMIN_DOMAIN_CHANNEL, LBL_ADMIN_DOMAIN_CHANNEL_LBL), 
    229                  array (CST_ADMIN_DOMAIN_ITEM, LBL_ADMIN_DOMAIN_ITEM_LBL), 
    230                  array (CST_ADMIN_DOMAIN_CONFIG, LBL_ADMIN_DOMAIN_CONFIG_LBL), 
    231                  array (CST_ADMIN_DOMAIN_PLUGINS, LBL_ADMIN_DOMAIN_PLUGINS_LBL), 
    232                  array (CST_ADMIN_DOMAIN_THEMES, LBL_ADMIN_DOMAIN_THEMES_LBL), 
    233                  array (CST_ADMIN_DOMAIN_FOLDER, LBL_ADMIN_DOMAIN_FOLDER_LBL), 
    234                  array (CST_ADMIN_DOMAIN_OPML, LBL_ADMIN_DOMAIN_LBL_OPML_LBL), 
    235                  array (CST_ADMIN_DOMAIN_TAGS, LBL_TAG_TAGS), 
    236                  array (CST_ADMIN_DOMAIN_USERS, LBL_ADMIN_USERS)) as $item) { 
     229                 array (CST_ADMIN_DOMAIN_DASHBOARD, __('Dashboard')), 
     230                 array (CST_ADMIN_DOMAIN_CHANNEL, __('feeds')), 
     231                 array (CST_ADMIN_DOMAIN_ITEM, __('items')), 
     232                 array (CST_ADMIN_DOMAIN_CONFIG, __('config')), 
     233                 array (CST_ADMIN_DOMAIN_PLUGINS, __('plugins')), 
     234                 array (CST_ADMIN_DOMAIN_THEMES, __('themes')), 
     235                 array (CST_ADMIN_DOMAIN_FOLDER, __('folders')), 
     236                 array (CST_ADMIN_DOMAIN_OPML, __('opml')), 
     237                 array (CST_ADMIN_DOMAIN_TAGS, __('Tags'))) as $item) { 
    237238 
    238239        $link = "index.php?view=".$item[0]; 
     
    241242        echo "\t<li$cls><a href=\"".getPath()."admin/$link\">".ucfirst($lbl)."</a></li>\n"; 
    242243    } 
    243     echo "\t<li><a href=\"".getPath()."?logout\">".LBL_ADMIN_LOGOUT."</a></li>\n"; 
     244    echo "\t<li><a href=\"".getPath()."?logout\">".__('Logout')."</a></li>\n"; 
    244245    echo "</ul>\n"; 
    245246} 
     
    264265    $ret = array(); 
    265266    $activeIdx = "0"; 
     267    $ret['en_US']=array( 
     268        'language'=>'English', 
     269        'windows-locale'=>'english' 
     270    ); 
    266271    while (false !== ($entry = $d->read())) { 
    267         if ( 
    268             $entry != "CVS" && 
    269             substr($entry,0,1) != "." 
    270         ) { 
    271             $info = getLanguageInfo($entry); 
    272             if (count($info) && array_key_exists('language',$info)) { 
    273                 $shortL=  preg_replace('|\.php.*$|','',$entry); 
    274                 $ret[$shortL] = $info['language']; 
    275             } 
    276         } 
     272        if (preg_match('#^[a-z]{2}_[A-Z]{2}$#',$entry)) { 
     273            $ret[$entry]=getLanguageInfo($entry); 
     274        }  
    277275    } 
    278276    $d->close(); 
     
    282280 
    283281 
    284 function getLanguageInfo($file) { 
     282function getLanguageInfo($dir) { 
    285283    $info = array(); 
    286     $path = "../intl/$file"; 
     284    $path = "../intl/$dir/langinfo.txt"; 
    287285    if (file_exists($path)) { 
    288286        $f = @fopen($path,'r'); 
     
    295293        } 
    296294 
    297         if ($contents && preg_match_all("/\/\/\/\s?([^:]+):(.*)/",$contents,$matches,PREG_SET_ORDER)) { 
     295        if ($contents && preg_match_all("/([^:]+):(.*)/",$contents,$matches,PREG_SET_ORDER)) { 
    298296            foreach($matches as $match) { 
    299297                $key = trim(strtolower($match[1])); 
    300298                $val = trim($match[2]); 
    301                 if ($key == 'version') { 
    302                     $val=preg_replace('/[^0-9\.]+/','',$val); 
    303                 } 
    304  
    305299                $info[$key] = $val; 
    306300            } 
     
    350344 
    351345function admin_title() { 
    352     $title = array("Admin"); 
     346    $title = array(__("Admin")); 
    353347    if (array_key_exists(CST_ADMIN_VIEW,$_REQUEST)) { 
    354348        $title[] = ucwords( 
  • branches/multiuser/admin/items.php

    r1595 r1604  
    3434 
    3535    echo  "" 
    36     . "<h2 class=\"trigger\">". LBL_ADMIN_ITEM ."</h2>\n" 
     36    . "<h2 class=\"trigger\">". __('Items:') ."</h2>\n" 
    3737    . "<div id=\"admin_items\">\n" 
    3838    . "<form method=\"get\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    3939    . "<fieldset class=\"prune\">\n" 
    40     . "<legend>".LBL_ADMIN_PRUNING."</legend>\n" 
     40    . "<legend>".__('Pruning')."</legend>\n" 
    4141    . "<p><input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN ."\" value=\"".CST_ADMIN_DOMAIN_ITEM."\"/>\n" 
    42     . "<label for=\"prune_older\">" . LBL_ADMIN_PRUNE_OLDER ."</label>\n" 
     42    . "<label for=\"prune_older\">" . __('Delete items older than ') ."</label>\n" 
    4343    . "<input type=\"text\" size=\"5\" name=\"prune_older\" id=\"prune_older\" value=\"\" />\n" 
    4444    . "<select name=\"prune_period\" id=\"prune_period\">\n" 
    45     . "<option>" . LBL_ADMIN_PRUNE_DAYS . "</option>\n" 
    46     . "<option>" . LBL_ADMIN_PRUNE_MONTHS . "</option>\n" 
    47     . "<option>" . LBL_ADMIN_PRUNE_YEARS . "</option>\n" 
     45    . "<option>" . __('days') . "</option>\n" 
     46    . "<option>" . __('months') . "</option>\n" 
     47    . "<option>" . __('years') . "</option>\n" 
    4848    . "</select></p>\n" 
    49     . "<p>\n" 
    50         . rss_toolkit_channels_combo("prune_channel") . "\n" 
     49    . "<p><label for=\"prune_channel\">".__('...from these feeds').":</label>\n" 
     50        . rss_toolkit_channels_combo("prune_channel", ALL_CHANNELS_ID, 0, true) . "\n" 
    5151    . "</p>\n" 
    52     . "<p><label for=\"prune_include_sticky\">".LBL_ADMIN_PRUNE_INCLUDE_STICKY."</label>\n" 
     52    . "<p><label for=\"prune_include_sticky\">".__('Delete Sticky items too: ')."</label>\n" 
    5353    . "<input type=\"checkbox\" id=\"prune_include_sticky\" name=\"prune_include_sticky\" value=\"1\"/></p>\n" 
    54     . "<p><label for=\"prune_exclude_tags\">".LBL_ADMIN_PRUNE_EXCLUDE_TAGS."</label>\n" 
     54    . "<p><label for=\"prune_exclude_tags\">".__('Do not delete items tagged... ')."</label>\n" 
    5555    . "<input type=\"text\" id=\"prune_exclude_tags\" name=\"prune_exclude_tags\" value=\"\"/></p>\n" 
    56     . "<p style=\"font-size:small; padding:0;margin:0\">".LBL_ADMIN_ALLTAGS_EXPL."</p>\n" 
    57     . "<p class=\"cntr\"><input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_DELETE2 ."\"/></p>\n" 
     56    . "<p style=\"font-size:small; padding:0;margin:0\">".__('(Enter <strong>*</strong> to keep all tagged items)')."</p>\n" 
     57    . "<p class=\"cntr\"><input type=\"submit\" name=\"action\" value=\"". __('Delete') ."\"/></p>\n" 
    5858    . "</fieldset>\n" 
    5959    . "</form>\n" 
     
    6868    $ret__ = CST_ADMIN_DOMAIN_NONE; 
    6969    switch ($_REQUEST['action']) { 
    70     case LBL_ADMIN_DELETE2: 
     70    case __('Delete'): 
    7171            $req = rss_query('select count(*) as cnt from ' .getTable('item') 
    7272                             ." where not(unread & " . RSS_MODE_DELETED_STATE  .")" 
     
    7979                is_numeric($_REQUEST['prune_older']))   { 
    8080            switch ($_REQUEST['prune_period']) { 
    81             case LBL_ADMIN_PRUNE_DAYS: 
     81            case __('days'): 
    8282                $period = 'day'; 
    8383                break; 
    8484 
    85             case LBL_ADMIN_PRUNE_MONTHS: 
     85            case __('months'): 
    8686                $period = 'month'; 
    8787                break; 
    8888 
    89             case LBL_ADMIN_PRUNE_YEARS: 
     89            case __('years'): 
    9090                $period = 'year'; 
    9191                break; 
    9292 
    9393            default: 
    94                 rss_error(LBL_ADMIN_ERROR_PRUNING_PERIOD, RSS_ERROR_ERROR,true); 
     94                rss_error(__('Invalid pruning period'), RSS_ERROR_ERROR,true); 
    9595                return CST_ADMIN_DOMAIN_ITEM; 
    9696                break; 
     
    227227                                                       . " and not(i.unread & " . RSS_MODE_DELETED_STATE .")" 
    228228                                                      )); 
    229                 rss_error(sprintf(LBL_ADMIN_ABOUT_TO_DELETE,$cnt_d,$cnt), RSS_ERROR_ERROR,true); 
     229                rss_error(sprintf(__('Warning: you are about to delete %s items (of %s)'),$cnt_d,$cnt), RSS_ERROR_ERROR,true); 
    230230 
    231231                echo "<form action=\"\" method=\"post\">\n" 
     
    234234                ."<input type=\"hidden\" name=\"prune_period\" value=\"".$_REQUEST['prune_period']."\" />\n" 
    235235                ."<input type=\"hidden\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"1\" />\n" 
    236                 ."<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_DELETE2 ."\" />\n" 
    237                 ."<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_CANCEL ."\"/>\n" 
     236                ."<input type=\"submit\" name=\"action\" value=\"". __('Delete') ."\" />\n" 
     237                ."<input type=\"submit\" name=\"action\" value=\"". __('Cancel') ."\"/>\n" 
    238238                ."</p>\n" 
    239239                ."</form>\n"; 
    240240            } 
    241241        } else { 
    242             rss_error(LBL_ADMIN_ERROR_NO_PERIOD, RSS_ERROR_ERROR,true); 
     242            rss_error(__('oops, no period specified'), RSS_ERROR_ERROR,true); 
    243243            $ret__ = CST_ADMIN_DOMAIN_ITEM; 
    244244        } 
  • branches/multiuser/admin/opml.php

    r1530 r1604  
    3636    //disable file upload formfields when file_upload is false 
    3737    $disableupload = ini_get('file_uploads') ? "":" disabled=\"disabled\" "; 
    38     echo "<h2>". LBL_ADMIN_OPML ."</h2>\n"; 
     38    echo "<h2>". __('OPML:') ."</h2>\n"; 
    3939    echo "<div id=\"admin_opml\">\n"; 
    4040 
    4141    echo "<fieldset id=\"opmlimport\">\n" 
    42     ."<legend>" . LBL_ADMIN_OPML_IMPORT_OPML . "</legend>"; 
     42    ."<legend>" . __('Import OPML:') . "</legend>"; 
    4343 
    4444    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
    4545    echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN ."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\"/>\n"; 
    46     echo "<label for=\"opml\">" . LBL_ADMIN_OPML_IMPORT_FROM_URL ."</label>\n"; 
     46    echo "<label for=\"opml\">" . __('... from URL:') ."</label>\n"; 
    4747    echo "<input type=\"text\"  name=\"opml\" id=\"opml\" value=\"http://\" onfocus=\"this.select()\"/></p>\n"; 
    4848 
     
    5050    echo '<p><input type="hidden" name="' . CST_ADMIN_DOMAIN . '" value="' . CST_ADMIN_DOMAIN_CHANNEL . "\" />\n"; 
    5151    echo '<input type="hidden" name="MAX_FILE_SIZE" value="150000" />' . "\n"; 
    52     echo '<label for="opmlfile">' . LBL_ADMIN_OPML_IMPORT_FROM_FILE . "</label>\n"; 
     52    echo '<label for="opmlfile">' . __('... from File:') . "</label>\n"; 
    5353    echo '<input name="opmlfile" type="file" id="opmlfile" '.$disableupload.'/></p>' . "\n"; 
    5454 
     
    6161 
    6262    echo "\n" 
    63     ."<p>".LBL_ADMIN_OPML_IMPORT_AND."</p>" 
     63    ."<p>".__('Import new feeds and:')."</p>" 
    6464 
    6565    ."<p style=\"padding-left:1em;\"><input checked=\"checked\" type=\"radio\" id=\"opml_import_option_merge\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_MERGE."\" />\n" 
    66     ."<label for=\"opml_import_option_merge\" >".LBL_ADMIN_OPML_IMPORT_MERGE."</label></p>\n" 
     66    ."<label for=\"opml_import_option_merge\" >".__('... merge them with the existing ones.')."</label></p>\n" 
    6767 
    6868 
    6969    ."<p style=\"padding-left:1em;\"><input type=\"radio\" id=\"opml_import_option_folder\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_FOLDER."\" />\n" 
    70     ."<label for=\"opml_import_option_folder\" >".LBL_ADMIN_OPML_IMPORT_FOLDER."</label>" 
     70    ."<label for=\"opml_import_option_folder\" >".__('... add them to the folder:')."</label>" 
    7171    .rss_toolkit_folders_combo('opml_import_to_folder',null) 
    7272    ."</p>\n" 
    7373 
    7474    ."<p style=\"padding-left:1em;\"><input type=\"radio\" id=\"opml_import_option_wipe\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_WIPE."\" />\n" 
    75     ."<label for=\"opml_import_option_wipe\" >".LBL_ADMIN_OPML_IMPORT_WIPE."</label></p>\n" 
     75    ."<label for=\"opml_import_option_wipe\" >".__('... replace all existing feeds and items.')."</label></p>\n" 
    7676 
    7777    .""; 
    7878 
    7979 
    80     echo "<p style=\"text-align:center\"><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"LBL_ADMIN_IMPORT\" />\n"; 
    81     echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_OPML_IMPORT ."\" /></p>\n"; 
     80    echo "<p style=\"text-align:center\"><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_IMPORT\" />\n"; 
     81    echo "<input type=\"submit\" name=\"action\" value=\"". __('Import') ."\" /></p>\n"; 
    8282 
    8383 
     
    9191    // export 
    9292    opml_export_form(); 
    93  
     93    dump_export_form(); 
    9494    echo "</div>\n"; 
    9595} 
     
    105105        $action = getPath() ."opml.php"; 
    106106    } 
    107     echo "<fieldset style=\"vertical-align:top\">\n<legend>".LBL_ADMIN_OPML_EXPORT_OPML."</legend>\n"; 
     107    echo "<fieldset style=\"vertical-align:top\">\n<legend>".__('Export OPML:')."</legend>\n"; 
    108108    echo "<form method=\"$method\" action=\"$action\">\n" 
    109     ."<p><label for=\"action\">". LBL_ADMIN_OPML_EXPORT_OPML. "</label>\n" 
    110     ."<input type=\"submit\" name=\"act\" id=\"action\" value=\"". LBL_ADMIN_EXPORT ."\" />" 
     109    ."<p><label for=\"action\">". __('Export OPML:'). "</label>\n" 
     110    ."<input type=\"submit\" name=\"act\" id=\"action\" value=\"". __('Export') ."\" />" 
     111    ."</p>\n</form>\n" 
     112    ."</fieldset>\n"; 
     113} 
     114 
     115 
     116/***** DUMP ******/ 
     117 
     118function dump_export_form() { 
     119 
     120    echo "<fieldset style=\"vertical-align:top\">\n<legend>".__('XML Dump:')."</legend>\n"; 
     121    echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">\n" 
     122    ."<p><label for=\"action\">". __('Dump your Gregarius installation to XML'). "</label>\n" 
     123    ."<input type=\"submit\" name=\"dumpact\" id=\"action\" value=\"".__('Dump!')."\" />" 
     124    ."<input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN ."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\"/>\n" 
     125    ."<input type=\"hidden\" name=\"".CST_ADMIN_METAACTION."\" value=\"dump\"/>\n" 
    111126    ."</p>\n</form>\n" 
    112127    ."</fieldset>\n"; 
  • branches/multiuser/admin/plugins.php

    r1438 r1604  
    8484 
    8585    // Rendering 
    86     echo "<h2 class=\"trigger\">".LBL_ADMIN_PLUGINS."</h2>\n" 
     86    echo "<h2 class=\"trigger\">".__('Plugins')."</h2>\n" 
    8787    ."<div id=\"admin_plugins\">\n"; 
    8888 
    8989 
    90     echo LBL_ADMIN_PLUGINS_GET_MORE; 
     90    echo __('<p style="font-size:small">Plugins are third-party scripts that offer extended functionalities. More plugins can be downloaded at the <a style="text-decoration:underline"  href="http://plugins.gregarius.net/">Plugin Repository</a>.</p>'); 
    9191 
    9292    echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
    9393    echo "<p><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_PLUGINS."\" /></p>\n"; 
    9494    echo "\n<table id=\"plugintable\">\n<tr>\n" 
    95     ."<th>".LBL_ADMIN_PLUGINS_HEADING_ACTION."</th>\n" 
    96     ."<th>".LBL_ADMIN_PLUGINS_HEADING_NAME."</th>\n" 
    97     ."<th>".LBL_ADMIN_PLUGINS_HEADING_VERSION."</th>\n" 
    98     ."<th>".LBL_ADMIN_PLUGINS_HEADING_AUTHOR."</th>\n" 
    99     ."<th>".LBL_ADMIN_PLUGINS_HEADING_DESCRIPTION."</th>\n" 
    100     ."<th>".LBL_ADMIN_PLUGINS_HEADING_OPTIONS."</th>\n"; 
     95    ."<th>".__('Active')."</th>\n" 
     96    ."<th>".__('Name')."</th>\n" 
     97    ."<th>".__('Version')."</th>\n" 
     98    ."<th>".__('Author')."</th>\n" 
     99    ."<th>".__('Description')."</th>\n" 
     100    ."<th>".__('Options')."</th>\n"; 
    101101    if ($doUpdates) { 
    102         echo "<th>".LBL_ADMIN_PLUGINS_HEADING_UPDATES."</th>\n"; 
     102        echo "<th>".__('Update Available')."</th>\n"; 
    103103    } 
    104104 
     
    147147                    ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;plugin_name=".$escaped_plugin_name 
    148148                    ."&amp;" .CST_ADMIN_VIEW ."=" .CST_ADMIN_DOMAIN_PLUGIN_OPTIONS 
    149                     ."\">" . LBL_ADMIN_EDIT 
     149                    ."\">" . __('edit') 
    150150                    ."</a>"; 
    151151                } else { 
     
    167167    } 
    168168    echo "</table>\n"; 
    169     echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"LBL_ADMIN_SUBMIT_CHANGES\"/>\n"; 
    170     echo "<input type=\"submit\" name=\"admin_plugin_submit_changes\" value=\"".LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
    171     echo "<input type=\"submit\" name=\"admin_plugin_check_for_updates\" value=\"".LBL_ADMIN_CHECK_FOR_UPDATES."\" /></p></form>\n"; 
     169    echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; 
     170    echo "<input type=\"submit\" name=\"admin_plugin_submit_changes\" value=\"".__('Submit Changes')."\" />\n"; 
     171    echo "<input type=\"submit\" name=\"admin_plugin_check_for_updates\" value=\"".__('Check for Updates')."\" /></p></form>\n"; 
    172172    echo "</div>"; 
    173173} 
     
    200200        if ($plugin_output) { // Let us set up a form 
    201201            echo "<h2 
    202             class=\"trigger\">".LBL_ADMIN_PLUGINS_OPTIONS." ".TITLE_SEP." ". $plugin_info['name']. "</h2>\n" 
     202            class=\"trigger\">".__('Plugin Options')." ".TITLE_SEP." ". $plugin_info['name']. "</h2>\n" 
    203203            ."<div id=\"admin_plugin_options\">\n"; 
    204204            echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
     
    208208            echo "<p><input type=\"hidden\" name=\"plugin_name\" value=\"".$plugin_filename."\"/>\n"; 
    209209            echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION 
    210             ."\" value=\"LBL_ADMIN_SUBMIT_CHANGES\"/>\n"; 
     210            ."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; 
    211211            echo "<input type=\"submit\" name=\"admin_plugin_options_submit_changes\" value=\"" 
    212             .LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
     212            .__('Submit Changes')."\" />\n"; 
    213213            echo "<input type=\"submit\" name=\"admin_plugin_options_cancel_changes\" 
    214             value=\"".LBL_ADMIN_CANCEL."\" /></p></form>\n"; 
     214            value=\"".__('Cancel')."\" /></p></form>\n"; 
    215215            echo "</div>"; 
    216216        } else { 
  • branches/multiuser/admin/tags.php

    r1515 r1604  
    5858 
    5959    case CST_ADMIN_DELETE_ACTION: 
    60         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     60        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    6161            $sql = "delete from " . getTable("tag") ." where id=$tid"; 
    6262            rss_query($sql); 
     
    6464            rss_query($sql); 
    6565            rss_invalidate_cache(); 
    66         } elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_NO) { 
     66        } elseif (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST) && $_REQUEST[CST_ADMIN_CONFIRMED] == __('No')) { 
    6767            // nop; 
    6868        } elseif (array_key_exists('me_delete', $_REQUEST)) { 
     
    9191            echo "<form class=\"box\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    9292            ."<p class=\"error\">"; 
    93             printf(LBL_ADMIN_ARE_YOU_SURE,$tname); 
     93            printf(__("Are you sure you wish to delete '%s'?"),$tname); 
    9494            echo "</p>\n" 
    95             ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_NO ."\"/>\n" 
    96             ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". LBL_ADMIN_YES ."\"/>\n" 
     95            ."<p><input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('No') ."\"/>\n" 
     96            ."<input type=\"submit\" name=\"".CST_ADMIN_CONFIRMED."\" value=\"". __('Yes') ."\"/>\n" 
    9797            ."<input type=\"hidden\" name=\"id\" value=\"$tid\"/>\n" 
    9898            ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_TAGS."\"/>\n" 
     
    111111            list($cnt) = rss_fetch_row($res); 
    112112            if ($cnt > 0) { 
    113                 rss_error(sprintf(LBL_ADMIN_CANT_RENAME,$new_label), RSS_ERROR_ERROR,true); 
     113                rss_error(sprintf(__("You can't rename this item '%s' because such an item already exists."),$new_label), RSS_ERROR_ERROR,true); 
    114114                break; 
    115115            } 
     
    133133 
    134134    echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">\n" 
    135     ."<h2 class=\"trigger\">".LBL_TAG_TAGS."</h2>\n" 
     135    ."<h2 class=\"trigger\">".__('Tags')."</h2>\n" 
    136136    ."<div id=\"admin_tags\" class=\"trigger\">" 
    137137    ."<table id=\"tagtable\">\n" 
    138138    ."<tr>\n" 
    139139  ."\t<th><input type=\"checkbox\" id=\"mastercb\" onclick=\"cbtoggle();\" /></th>\n" 
    140     ."\t<th class=\"cntr\">". LBL_TAG_TAGS ."</th>\n" 
    141     ."\t<th>". LBL_ADMIN_CHANNELS_HEADING_ACTION ."</th>\n" 
     140    ."\t<th class=\"cntr\">". __('Tags') ."</th>\n" 
     141    ."\t<th>". __('Action') ."</th>\n" 
    142142    ."</tr>\n"; 
    143143 
     
    151151        ."\t<td><label for=\"scb_$id\">$tag</label></td>\n" 
    152152        ."\t<td><a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_TAGS 
    153         ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;id=$id\">" . LBL_ADMIN_EDIT 
     153        ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;id=$id\">" . __('edit') 
    154154        ."</a>\n" 
    155155        ."|<a href=\"".$_SERVER['PHP_SELF']. "?".CST_ADMIN_DOMAIN."=". CST_ADMIN_DOMAIN_TAGS 
    156         ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;id=$id\">" . LBL_ADMIN_DELETE ."</a>\n" 
     156        ."&amp;action=". CST_ADMIN_DELETE_ACTION ."&amp;id=$id\">" . __('delete') ."</a>\n" 
    157157        ."</td>\n" 
    158158        ."</tr>\n"; 
     
    160160    echo "</table>\n"; 
    161161    echo "<fieldset>\n" 
    162     ."<legend>Selected...</legend>\n" 
     162    ."<legend>".__('Selected')."...</legend>\n" 
    163163    ."<p>\n" 
    164     ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".LBL_ADMIN_DELETE2."\" />\n" 
     164    ."<input type=\"submit\" id=\"me_delete\" name=\"me_delete\" value=\"".__('Delete')."\" />\n" 
    165165    ."<input type=\"checkbox\" name=\"me_do_delete\" id=\"me_do_delete\" value=\"1\" />\n" 
    166     ."<label for=\"me_do_delete\">".LBL_ADMIN_IM_SURE."</label>\n" 
     166    ."<label for=\"me_do_delete\">".__("I'm sure!")."</label>\n" 
    167167    ."<input type=\"hidden\" name=\"action\" value=\"".CST_ADMIN_DELETE_ACTION."\" />\n" 
    168168    ."<input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_TAGS."\" />\n" 
     
    178178 
    179179    echo "<div>\n" 
    180     ."<h2>Edit '$tag'</h2>\n" 
     180    ."<h2>".ucfirst(__('edit'))." '$tag'</h2>\n" 
    181181    ."<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\" id=\"tagedit\">\n" 
    182182 
     
    184184    ."<input type=\"hidden\" name=\"action\" value=\"".CST_ADMIN_SUBMIT_EDIT."\"/>\n" 
    185185    ."<input type=\"hidden\" name=\"id\" value=\"$tid\"/>\n" 
    186     ."<label for=\"t_name\">". LBL_ADMIN_RENAME ."</label>\n" 
     186    ."<label for=\"t_name\">". __('Rename to...') ."</label>\n" 
    187187    ."<input type=\"text\" id=\"t_name\" name=\"t_name\" value=\"$tag\"/>\n" 
    188     ."<input type=\"submit\" name=\"action_\" value=\"". LBL_ADMIN_SUBMIT_CHANGES ."\"/></div>" 
     188    ."<input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\"/></div>" 
    189189    ."</form></div>\n"; 
    190190} 
  • branches/multiuser/admin/themes.php

    r1530 r1604  
    4848        echo "<form style=\"float:right\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    4949          . "<p><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_THEMES."\" />\n" 
    50         ."<input type=\"submit\" name=\"admin_themes_check_for_updates\" value=\"".LBL_ADMIN_CHECK_FOR_UPDATES."\" /></p>\n" 
     50        ."<input type=\"submit\" name=\"admin_themes_check_for_updates\" value=\"".__('Check for Updates')."\" /></p>\n" 
    5151        . "</form>\n"; 
    5252        if (isset($_POST['admin_themes_check_for_updates'])) { 
    53             theme_getThemesUpdate(&$themes); 
     53            theme_getThemesUpdate($themes); 
    5454        } 
    5555     
    56     echo "<h2 class=\"trigger\">".LBL_ADMIN_THEMES."</h2>\n" 
     56    echo "<h2 class=\"trigger\">".__('Themes')."</h2>\n" 
    5757    ."<div id=\"admin_themes\" >\n"; 
    58     echo LBL_ADMIN_THEMES_GET_MORE; 
     58    echo __('<p style="font-size:small">Themes are made of a set of template files which specify how your Gregarius installation looks.<br />More themes can be downloaded from the <a style="text-decoration:underline"  href="http://themes.gregarius.net/">Themes Repository</a>.</p>'); 
    5959 
    6060 
     
    8888        echo "<div class=\"themeframe".($active?" active":""). ($updateAvailable?" hilite":"")."\"><span>"; 
    8989        if (!$active && $htmltheme) { 
    90             echo "<a href=\"$seturl\" class=\"bookmarklet\">".LBL_ADMIN_USE_THIS_THEME."</a>"; 
     90            echo "<a href=\"$seturl\" class=\"bookmarklet\">".__('Use this Theme')."</a>"; 
    9191        } elseif($active) { 
    92             echo "<p class=\"bookmarklet\">".LBL_ADMIN_ACTIVE_THEME."</p>"; 
     92            echo "<p class=\"bookmarklet\">".__('Active Theme')."</p>"; 
    9393        } 
    9494        echo "<h4>$h4</h4>\n"; 
     
    9898                    ."&amp;theme=".$entry 
    9999                    ."&amp;" .CST_ADMIN_VIEW ."=" .CST_ADMIN_DOMAIN_THEME_OPTIONS 
    100                     ."\">" . LBL_ADMIN_CONFIGURE . "</a>"; 
     100                    ."\">" . __('Configure') . "</a>"; 
    101101        echo "<h5>$h5</h5>\n" 
    102102            ."<p class=\"themescreenshot\">$screenshotURL</p>" 
     
    150150        if ($theme_output) { // Let us set up a form 
    151151            echo "<h2 
    152             class=\"trigger\">".LBL_ADMIN_THEME_OPTIONS." ".TITLE_SEP." ". $name. "</h2>\n" 
     152            class=\"trigger\">".__('Theme Options')." ".TITLE_SEP." ". $name. "</h2>\n" 
    153153            ."<div id=\"admin_theme_options\">\n"; 
    154154            echo "<form method=\"post\" "; 
     
    162162            echo "<p><input type=\"hidden\" name=\"theme\" value=\"".$theme."\"/>\n"; 
    163163            echo "<input type=\"hidden\" name=\"". CST_ADMIN_METAACTION 
    164                    ."\" value=\"LBL_ADMIN_SUBMIT_CHANGES\"/>\n"; 
     164                   ."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; 
    165165            if( isset( $_REQUEST['mediaparam'] ) ) //pass it along 
    166166            { 
     
    171171            { 
    172172                echo "<input type=\"submit\" name=\"admin_theme_options_submit_changes\" value=\"" 
    173                 .LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
     173                .__('Submit Changes')."\" />\n"; 
    174174                echo "<input type=\"submit\" name=\"admin_theme_options_cancel_changes\" 
    175                 value=\"".LBL_ADMIN_CANCEL."\" />\n"; 
     175                value=\"".__('Cancel')."\" />\n"; 
    176176            } 
    177177            echo "</p></form>\n"; 
     
    273273     
    274274    if( isset( $_REQUEST['mediaparam'] ) && $media === sanitize($_REQUEST['mediaparam'], RSS_SANITIZER_CHARACTERS) ) { 
    275         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     275        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    276276            if (!array_key_exists('key',$_REQUEST)) { 
    277277                rss_error('Invalid config key specified.', RSS_ERROR_ERROR,true); 
     
    283283        } else if( rss_theme_options_is_submit() ) { 
    284284            switch ($action) { 
    285             case LBL_ADMIN_SUBMIT_CHANGES: 
    286             case 'LBL_ADMIN_SUBMIT_CHANGES': 
     285            case __('Submit Changes'): 
     286            case 'ACT_ADMIN_SUBMIT_CHANGES': 
    287287                if (!array_key_exists('key',$_REQUEST)) { 
    288288                    rss_error('Invalid config key specified.', RSS_ERROR_ERROR,true); 
  • branches/multiuser/admin/users.php

    r1533 r1604  
    5151            pass2=document.getElementById('password2').value; 
    5252            if(pass !== pass2){ 
    53                 msg = '<?php echo LBL_ADMIN_PASS_NO_MATCH ?>'; 
     53                msg = '<?php echo __('Passwords do not match!') ?>'; 
    5454                document.getElementById('admin_match_result').innerHTML = msg; 
    5555                document.getElementById('password').value = ''; 
     
    6767  echo "\n<div id=\"channel_admin\" class=\"frame\">"; 
    6868    echo "<h2></h2>\n" 
    69         . LBL_ADMIN_MUST_SET_PASS; 
     69        . __('<p>No Administrator has been specified yet!</p><p>Please provide an Administrator username and password now!</p>'); 
    7070     
    7171    echo "<form action=\"".$_SERVER['PHP_SELF'] . "\" onsubmit=\"return on_submit_password_match();\" method=\"post\">\n" 
    7272    ."<fieldset style=\"width:400px;\">" 
    73     ."<p><label style=\"display:block\" for=\"username\">".LBL_USERNAME.":</label>\n" 
     73    ."<p><label style=\"display:block\" for=\"username\">".__('Username').":</label>\n" 
    7474    ."<input type=\"text\" id=\"username\" name=\"username\" /></p>\n" 
    75     ."<p><label style=\"display:block\" for=\"password\">".LBL_PASSWORD.":</label>\n" 
     75    ."<p><label style=\"display:block\" for=\"password\">".__('Password').":</label>\n" 
    7676    ."<input type=\"password\" id=\"password\" name=\"password\" /></p>\n" 
    77     ."<p><label style=\"display:block\" for=\"password2\">".LBL_PASSWORD2.":</label>\n" 
     77    ."<p><label style=\"display:block\" for=\"password2\">".__('Password (again)').":</label>\n" 
    7878    ."<input type=\"password\" id=\"password2\" name=\"password2\" /></p>\n" 
    79     ."<p><input type=\"submit\" value=\"".LBL_ADMIN_OK."\" /></p>\n" 
     79    ."<p><input type=\"submit\" value=\"".__('OK')."\" /></p>\n" 
    8080    ."<div style=\"display:inline;\" id=\"admin_match_result\"></div>\n" 
    8181    ."</fieldset>\n" 
     
    9595        style=\"text-align:center\" action=\"".$_SERVER['PHP_SELF'] ."\" method=\"post\">\n" 
    9696    ."<fieldset>" 
    97     ."<legend>" . LBL_ADMIN_LOGIN . "</legend>\n" 
    98     ."<p><label style=\"display:block\" for=\"username\">".LBL_USERNAME.":</label>\n" 
     97    ."<legend>" . __('Please log in') . "</legend>\n" 
     98    ."<p><label style=\"display:block\" for=\"username\">".__('Username').":</label>\n" 
    9999    ."<input type=\"text\" id=\"username\" name=\"username\" value=\"$uname\" /></p>\n" 
    100     ."<p><label style=\"display:block\" for=\"password\">".LBL_PASSWORD.":</label>\n" 
     100    ."<p><label style=\"display:block\" for=\"password\">".__('Password').":</label>\n" 
    101101    ."<input type=\"password\" id=\"password\" name=\"password\" value=\"$pass\" /></p>\n" 
    102102    ."<p id=\"admin_login_submit\"><input type=\"submit\" value=\"".LBL_LOG_IN."\" /></p>\n" 
     
    117117        echo "<table>\n" 
    118118        ."<tr>\n" 
    119         ."\t<th>" . LBL_USERNAME . "</th>\n" 
     119        ."\t<th>" . __('Username') . "</th>\n" 
    120120        ."\t<th></th>\n" 
    121121        ."\t<th></th>\n" 
  • branches/multiuser/ajax.php

    r1530 r1604  
    7979 
    8080    $readItems -> populate(" i2u.flgunread=0 and i.cid= $cid", "", 0, 2, ITEM_SORT_HINT_READ); 
    81     $readItems -> setTitle(LBL_H2_RECENT_ITEMS); 
     81    $readItems -> setTitle(__('Recent items')); 
    8282    $readItems -> setRenderOptions(IL_TITLE_NO_ESCAPE); 
    8383    foreach ($readItems -> feeds[0] -> items as $item) { 
     
    192192 
    193193  var aspan=document.getElementById("ta" + id); 
    194   aspan.innerHTML = "<a href=\"#\" onclick=\"_et(" +id +"); return false;\"><?php echo  LBL_TAG_EDIT ?></a>"; 
     194  aspan.innerHTML = "<a href=\"#\" onclick=\"_et(" +id +"); return false;\"><?php echo  __('edit') ?></a>"; 
    195195} 
    196196 
     
    211211   var actionSpan = document.getElementById("ta" + id); 
    212212    var toggle = actionSpan.firstChild; 
    213     if (toggle.innerHTML == "<?php echo  LBL_TAG_SUBMIT ?>") { 
     213    if (toggle.innerHTML == "<?php echo  __('submit') ?>") { 
    214214        var fld = document.getElementById("tfield" + id); 
    215       toggle.innerHTML="<?php echo  LBL_TAG_SUBMITTING ?>"; 
     215      toggle.innerHTML="<?php echo  __('...') ?>"; 
    216216        submit_tag(id,fld.value); 
    217     } else if (toggle.innerHTML == "<?php echo  LBL_TAG_EDIT ?>") { 
     217    } else if (toggle.innerHTML == "<?php echo __('edit') ?>") { 
    218218       var isIE=document.all?true:false; 
    219219       // the tag container 
     
    222222        //.replace(<?php echo ALLOWED_TAGS_REGEXP ?>gi,""); 
    223223        // submit link 
    224         toggle.innerHTML="<?php echo  LBL_TAG_SUBMIT ?>"; 
     224        toggle.innerHTML="<?php echo  __('submit') ?>"; 
    225225        // cancel link 
    226226        cancel = document.createElement("a"); 
    227227        cancel.style.margin="0 0 0 0.5em"; 
    228         cancel.innerHTML = "<?php echo  LBL_TAG_CANCEL ?>"; 
     228        cancel.innerHTML = "<?php echo  __('cancel') ?>"; 
    229229        cancel.setAttribute("href","#"); 
    230230        if (isIE) { 
     
    515515        + (tmpState & <?php echo  RSS_MODE_UNREAD_STATE ?> ?' checked="checked"':'') 
    516516        + ' />' 
    517         + '<label for="sf' + id + 'u"><?php echo  LBL_STATE_UNREAD ?></label></p>' 
     517        + '<label for="sf' + id + 'u"><?php echo  __("Unread (Set this item\'s read/unread state)") ?></label></p>' 
    518518        + '<p><input type="checkbox" id="sf' + id + 's" value="1"' 
    519519        + (tmpState & <?php echo  RSS_MODE_STICKY_STATE ?> ?' checked="checked"':'') 
    520520        + ' />' 
    521         + '<label for="sf' + id + 's"><?php echo  LBL_STATE_STICKY ?></label></p>' 
     521        + '<label for="sf' + id + 's"><?php echo  __("Sticky (Won\'t be deleted when you prune items)") ?></label></p>' 
    522522        + '<p><input type="checkbox" id="sf' + id + 'p" value="1"' 
    523523        + (tmpState & <?php echo  RSS_MODE_PRIVATE_STATE ?> ?' checked="checked"':'') 
    524524        + ' />' 
    525         + '<label for="sf' + id + 'p"><?php echo  LBL_STATE_PRIVATE ?></label></p>' 
     525        + '<label for="sf' + id + 'p"><?php echo  __("Private (Only administrators can see private items)") ?></label></p>' 
    526526        + '<p><input type="checkbox" id="sf' + id + 'f" value="1"' 
    527527        + (tmpState & <?php echo  RSS_MODE_FLAG_STATE ?> ?' checked="checked"':'') 
    528528        + ' />' 
    529     + '<label for="sf' + id + 'f"><?php echo  LBL_STATE_FLAG ?></label></p>' 
     529    + '<label for="sf' + id + 'f"><?php echo  __("Flag (Flags an item for later reading)") ?></label></p>' 
    530530        + extraCode 
    531531        + '<p class="sbm">' 
    532         + '<a id="ess'+id+'ok" href="#" onclick="'+onOk+'"><?php echo  LBL_ADMIN_OK ?></a>' 
    533         + '<a href="#" onclick="'+onCancel+'"><?php echo  LBL_ADMIN_CANCEL ?></a></p>' 
     532        + '<a id="ess'+id+'ok" href="#" onclick="'+onOk+'"><?php echo  __("OK") ?></a>' 
     533        + '<a href="#" onclick="'+onCancel+'"><?php echo  __("Cancel") ?></a></p>' 
    534534        + '</form>'; 
    535535 
  • branches/multiuser/api.php

    r1275 r1604  
    6666    $sql = "select " 
    6767           ." c.id, c.title, c.url, c.siteurl, f.name " 
    68            ." from ".getTable("channels")." c, " 
    69            .getTable("folders")." f "." where f.id = c.parent"; 
     68           ." from ".getTable("channels")." c " 
     69           . " inner join " . getTable("folders")." f on f.id = c.parent"; 
    7070 
    7171    if (hidePrivate()) { 
     
    135135           ." c.descr as cdescr, c.url as curl, i.author as iauth, i.url as iurl, " 
    136136           ." unix_timestamp(ifnull(i.pubdate, i.added)) as idate ,i.id as iid" 
    137            ." from ".getTable('item')." i, ".getTable('channels') ." c " 
    138            ." where i.cid=c.id and i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
     137           ." from ".getTable('item')." i " 
     138           . " inner join ".getTable('channels') ." c " 
     139           ." on i.cid=c.id where i.unread & ". RSS_MODE_UNREAD_STATE ." and c.id=$cid"; 
    139140 
    140141    if ($date) { 
  • branches/multiuser/author.php

    r1464 r1604  
    3939} 
    4040 
    41 $t = ucfirst(LBL_ITEMS) . " " . LBL_BY . " " . $ra; 
     41$t = ucfirst(__('items')) . " " . __(' by ') . " " . $ra; 
    4242$GLOBALS['rss']->header = new Header($t); 
    4343$GLOBALS['rss']->feedList = new FeedList(false); 
  • 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

    r1500 r1604  
    132132function rss_footer_last_modif() { 
    133133    $ts = getLastModif(); 
    134     return ($ts ? rss_locale_date ("%c", $ts) : LBL_FOOTER_LAST_MODIF_NEVER); 
     134    return ($ts ? rss_locale_date ("%c", $ts) : __('Never')); 
    135135} 
    136136 
     
    140140     
    141141    if (rss_user_level() > RSS_USER_LEVEL_NOLEVEL) { 
    142         $ret .= sprintf(LBL_LOGGED_IN_AS, rss_user_name()) 
    143                 ."&nbsp;|&nbsp;<a href=\"".getPath()."?logout\">".LBL_LOG_OUT."</a>\n"; 
     142        $ret .= sprintf(__('Logged in as <strong>%s</strong>'), rss_user_name()) 
     143                ."&nbsp;|&nbsp;<a href=\"".getPath()."?logout\">".__('Logout')."</a>\n"; 
    144144    } else { 
    145         $ret .= LBL_NOT_LOGGED_IN 
    146                 ."&nbsp;|&nbsp;<a href=\"#\" onclick=\"miniloginform(); return false;\">".LBL_LOG_IN."</a>"; 
     145        $ret .= __('Not logged in') 
     146                ."&nbsp;|&nbsp;<a href=\"#\" onclick=\"miniloginform(); return false;\">".__('Login')."</a>"; 
    147147        $ret .= "<div style=\"display:none\" id=\"loginformcontainer\">" 
    148148                         . '<form ' . 'onsubmit="return loginHandler();" ' . 'method="post" action="'.getPath().'">' 
    149149                         . '<div style="display:inline"><input style=" width:50px;" name="username" id="username" type="text" /></div>' 
    150150                         . '<div style="display:inline"><input style=" width:50px;" name="password" id="password"  type="password" /></div>' 
    151                          . '<div style="display:inline"><input type="submit" value="'.LBL_LOG_IN.'" /></div>' 
     151                         . '<div style="display:inline"><input type="submit" value="'.__('Login').'" /></div>' 
    152152                         . '</form>' 
    153153                 ."</div>\n"; 
     
    157157} 
    158158 
     159function rss_header_doclang() { 
     160    return isset($GLOBALS['rssl10n']) && $GLOBALS['rssl10n']->getISOLang() ? $GLOBALS['rssl10n']->getISOLang():'en'; 
     161} 
    159162?> 
  • branches/multiuser/cls/wrappers/item.php

    r1595 r1604  
    4141} 
    4242 
    43 function rss_item_pl_title($label=LBL_PL_FOR) { 
    44      
     43function rss_item_pl_title($label=null){ 
     44    if (null === $label) { 
     45        $label = __('Permalink for '); 
     46    } 
    4547    if (getConfig('rss.output.usepermalinks')) { 
    4648        list ($ply, $plm, $pld) = explode(":", rss_date("Y:m:d", $GLOBALS['rss'] -> currentItem -> date, false));