Changeset 1163 for trunk/wp-admin/moderation.php
- Timestamp:
- 04/25/2004 02:19:31 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/moderation.php
r1108 r1163 1 1 <?php 2 $title = 'Moderate comments'; 2 require_once('../wp-includes/wp-l10n.php'); 3 4 $title = __('Moderate comments'); 3 5 $parent_file = 'edit.php'; 4 6 /* <Moderation> */ … … 52 54 53 55 if ($user_level < 3) { 54 die( '<p>Your level is not high enough to moderate comments.</p>');56 die(__('<p>Your level is not high enough to moderate comments.</p>')); 55 57 } 56 58 … … 93 95 94 96 if ($user_level <= 3) { 95 die( '<p>Your level is not high enough to moderate comments.</p>');97 die(__('<p>Your level is not high enough to moderate comments.</p>')); 96 98 } 97 99 ?> 98 100 <ul id="adminmenu2"> 99 <li><a href="edit.php"> Posts</a></li>100 <li><a href="edit-comments.php"> Comments</a></li>101 <li class="last"><a href="moderation.php" class="current"> Awaiting Moderation</a></li>101 <li><a href="edit.php"> <?php _e('Posts') ?></a></li> 102 <li><a href="edit-comments.php"> <?php _e('Comments') ?></a></li> 103 <li class="last"><a href="moderation.php" class="current"><?php _e('Awaiting Moderation') ?></a></li> 102 104 </ul> 103 105 <?php … … 110 112 if ($approved) { 111 113 if ('1' == $approved) { 112 echo "1 comment approved <br />\n";114 echo __("1 comment approved <br />") . "\n"; 113 115 } else { 114 echo "$approved comments approved <br />\n";116 echo sprintf(__("%s comments approved <br />"), $approved) . "\n"; 115 117 } 116 118 } 117 119 if ($deleted) { 118 120 if ('1' == $deleted) { 119 echo "1 comment deleted <br />\n";121 echo __("1 comment deleted <br />") . "\n"; 120 122 } else { 121 echo "$deleted comments deleted <br />\n";123 echo sprintf(__("%s comments deleted <br />"), $deleted) . "\n"; 122 124 } 123 125 } 124 126 if ($ignored) { 125 127 if ('1' == $ignored) { 126 echo "1 comment unchanged <br />\n";128 echo __("1 comment unchanged <br />") . "\n"; 127 129 } else { 128 echo "$ignored comments unchanged <br />\n";130 echo sprintf(__("%s comments unchanged <br />"), $ignored) . "\n"; 129 131 } 130 132 } … … 142 144 $file = basename(__FILE__); 143 145 ?> 144 < p>The following comments are in the moderation queue:</p>146 <?php _e('<p>The following comments are in the moderation queue:</p>') ?> 145 147 <form name="approval" action="moderation.php" method="post"> 146 148 <input type="hidden" name="action" value="update" /> … … 153 155 echo "\n\t<li id='comment-$comment->comment_ID'>"; 154 156 ?> 155 <p><strong> Name:</strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong>Email:</strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong>URI:</strong> <?php comment_author_url_link() ?> <?php } ?>| <strong>IP:</strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>157 <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('Email:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> 156 158 <?php comment_text() ?> 157 159 <p><?php 158 echo "<a href=\"post.php?action=editcomment&comment=".$comment->comment_ID."\"> Edit</a>";159 echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete just this comment</a> | "; ?>Bulk action: 160 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve"> Approve</label>161 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"> Delete</label>162 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"> Do nothing</label>160 echo "<a href=\"post.php?action=editcomment&comment=".$comment->comment_ID."\">" . __('Edit') . "</a>"; 161 echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), $comment->comment_author) . "')\">" . __('Delete just this comment') . "</a> | "; ?><?php _e('Bulk action:') ?> 162 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve"><?php _e('Approve') ?></label> 163 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"><?php _e('Delete') ?></label> 164 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"><?php _e('Do nothing') ?></label> 163 165 164 166 </li> … … 167 169 ?> 168 170 </ol> 169 <p class="submit"><input type="submit" name="submit" value=" Moderate Comments »" /></p>171 <p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments »') ?>" /></p> 170 172 </form> 171 173 <?php 172 174 } else { 173 175 // nothing to approve 174 echo "<p>Currently there are no comments to be approved.</p>\n";176 echo __("<p>Currently there are no comments to be approved.</p>") . "\n"; 175 177 } 176 178 ?>
Note: See TracChangeset
for help on using the changeset viewer.