Changeset 1561 for trunk/gregarius/cls/update.php
- Timestamp:
- 09/09/06 14:52:23 (2 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/update.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/update.php
r1544 r1561 116 116 if ($error & MAGPIE_FEED_ORIGIN_CACHE) { 117 117 if ($error & MAGPIE_FEED_ORIGIN_HTTP_304) { 118 $label = LBL_UPDATE_NOT_MODIFIED;118 $label = __('OK (304 Not modified)'); 119 119 $cls = ERROR_NOERROR; 120 120 } 121 121 elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_TIMEOUT) { 122 $label = LBL_UPDATE_CACHE_TIMEOUT;122 $label = __('HTTP Timeout (Local cache)'); 123 123 $cls = ERROR_WARNING; 124 124 } 125 125 elseif ($error & MAGPIE_FEED_ORIGIN_NOT_FETCHED) { 126 $label = LBL_UPDATE_STATUS_CACHED;126 $label = __('OK (Local cache)'); 127 127 $cls = ERROR_NOERROR; 128 128 } 129 129 elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_404) { 130 $label = LBL_UPDATE_NOT_FOUND;130 $label = __('404 Not Found (Local cache)'); 131 131 $cls = ERROR_ERROR; 132 132 } … … 137 137 } 138 138 elseif ($error & MAGPIE_FEED_ORIGIN_HTTP_200) { 139 $label = LBL_UPDATE_STATUS_OK;139 $label = __('OK (HTTP 200)'); 140 140 $cls = ERROR_NOERROR; 141 141 } 142 142 else { 143 143 if (is_numeric($error)) { 144 $label = LBL_UPDATE_STATUS_ERROR;144 $label = __('ERROR'); 145 145 $cls = ERROR_ERROR; 146 146 } else { … … 177 177 178 178 echo 179 "<h2>".sprintf( LBL_UPDATE_H2, count($this -> chans))."</h2>\n"179 "<h2>".sprintf(__('Updating %d Feeds...'), count($this -> chans))."</h2>\n" 180 180 ."<table id=\"updatetable\">\n" 181 181 ."<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"182 ."<th class=\"lc\">".__('Feed')."</th>\n" 183 ."<th class=\"mc\">".__('Status')."</th>\n" 184 ."<th class=\"rc\">".__('New Items')."</th>\n" 185 185 ."</tr>"; 186 186 … … 239 239 function render() { 240 240 241 echo "<h2 style=\"margin-bottom:1em;\">". sprintf( LBL_UPDATE_H2,count($this -> chans)) ."</h2>\n";241 echo "<h2 style=\"margin-bottom:1em;\">". sprintf(__('Updating %d Feeds...'),count($this -> chans)) ."</h2>\n"; 242 242 243 243 echo "<table id=\"updatetable\">\n" 244 244 ."<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"245 ."<th class=\"lc\">".__('Feed')."</th>\n" 246 ."<th class=\"mc\">".__('Status')."</th>\n" 247 ."<th class=\"rc\">".__('New Items')."</th>\n" 248 248 ."</tr>\n"; 249 249 … … 296 296 297 297 list($label,$cls) = parent::magpieError($error); 298 echo "\n$label, $unread " . LBL_UPDATE_UNREAD. "\n\n";298 echo "\n$label, $unread " . __('New Items') . "\n\n"; 299 299 flush(); 300 300 … … 325 325 $unread = count($unreadIds); 326 326 list($label,$cls) = parent::magpieError($error); 327 echo "\n$label, $unread " . LBL_UPDATE_UNREAD. "<br />";327 echo "\n$label, $unread " . __('New Items') . "<br />"; 328 328 flush(); 329 329 } … … 357 357 echo "$title ...\t"; 358 358 flush(); 359 echo "\n$label, $unread " . LBL_UPDATE_UNREAD. "\n\n";359 echo "\n$label, $unread " . __('New Items') . "\n\n"; 360 360 flush(); 361 361 }
