Changeset 1561 for trunk/gregarius/admin/items.php
- Timestamp:
- 09/09/06 14:52:23 (2 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/admin/items.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/items.php
r1552 r1561 34 34 35 35 echo "" 36 . "<h2 class=\"trigger\">". LBL_ADMIN_ITEM."</h2>\n"36 . "<h2 class=\"trigger\">". __('Items:') ."</h2>\n" 37 37 . "<div id=\"admin_items\">\n" 38 38 . "<form method=\"get\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 39 39 . "<fieldset class=\"prune\">\n" 40 . "<legend>". LBL_ADMIN_PRUNING."</legend>\n"40 . "<legend>".__('Pruning')."</legend>\n" 41 41 . "<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" 43 43 . "<input type=\"text\" size=\"5\" name=\"prune_older\" id=\"prune_older\" value=\"\" />\n" 44 44 . "<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" 48 48 . "</select></p>\n" 49 49 . "<p><label for=\"prune_channel\">".__('...from these feeds').":</label>\n" 50 50 . rss_toolkit_channels_combo("prune_channel", ALL_CHANNELS_ID, 0, true) . "\n" 51 51 . "</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" 53 53 . "<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" 55 55 . "<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" 58 58 . "</fieldset>\n" 59 59 . "</form>\n" … … 68 68 $ret__ = CST_ADMIN_DOMAIN_NONE; 69 69 switch ($_REQUEST['action']) { 70 case LBL_ADMIN_DELETE2:70 case __('Delete'): 71 71 $req = rss_query('select count(*) as cnt from ' .getTable('item') 72 72 ." where not(unread & " . RSS_MODE_DELETED_STATE .")" … … 79 79 is_numeric($_REQUEST['prune_older'])) { 80 80 switch ($_REQUEST['prune_period']) { 81 case LBL_ADMIN_PRUNE_DAYS:81 case __('days'): 82 82 $period = 'day'; 83 83 break; 84 84 85 case LBL_ADMIN_PRUNE_MONTHS:85 case __('months'): 86 86 $period = 'month'; 87 87 break; 88 88 89 case LBL_ADMIN_PRUNE_YEARS:89 case __('years'): 90 90 $period = 'year'; 91 91 break; 92 92 93 93 default: 94 rss_error( LBL_ADMIN_ERROR_PRUNING_PERIOD, RSS_ERROR_ERROR,true);94 rss_error(__('Invalid pruning period'), RSS_ERROR_ERROR,true); 95 95 return CST_ADMIN_DOMAIN_ITEM; 96 96 break; … … 227 227 . " and not(i.unread & " . RSS_MODE_DELETED_STATE .")" 228 228 )); 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); 230 230 231 231 echo "<form action=\"\" method=\"post\">\n" … … 234 234 ."<input type=\"hidden\" name=\"prune_period\" value=\"".$_REQUEST['prune_period']."\" />\n" 235 235 ."<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" 238 238 ."</p>\n" 239 239 ."</form>\n"; 240 240 } 241 241 } else { 242 rss_error( LBL_ADMIN_ERROR_NO_PERIOD, RSS_ERROR_ERROR,true);242 rss_error(__('oops, no period specified'), RSS_ERROR_ERROR,true); 243 243 $ret__ = CST_ADMIN_DOMAIN_ITEM; 244 244 }
