Make WordPress Core


Ignore:
Timestamp:
04/25/2004 02:19:31 AM (21 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/moderation.php

    r1108 r1163  
    11<?php
    2 $title = 'Moderate comments';
     2require_once('../wp-includes/wp-l10n.php');
     3
     4$title = __('Moderate comments');
    35$parent_file = 'edit.php';
    46/* <Moderation> */
     
    5254
    5355    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>'));
    5557    }
    5658
     
    9395
    9496    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>'));
    9698    }
    9799?>
    98100<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>
    102104</ul>
    103105<?php
     
    110112    if ($approved) {
    111113        if ('1' == $approved) {
    112         echo "1 comment approved <br />\n";
     114         echo __("1 comment approved <br />") . "\n";
    113115        } else {
    114         echo "$approved comments approved <br />\n";
     116         echo sprintf(__("%s comments approved <br />"), $approved) . "\n";
    115117        }
    116118    }
    117119    if ($deleted) {
    118120        if ('1' == $deleted) {
    119         echo "1 comment deleted <br />\n";
     121        echo __("1 comment deleted <br />") . "\n";
    120122        } else {
    121         echo "$deleted comments deleted <br />\n";
     123        echo sprintf(__("%s comments deleted <br />"), $deleted) . "\n";
    122124        }
    123125    }
    124126    if ($ignored) {
    125127        if ('1' == $ignored) {
    126         echo "1 comment unchanged <br />\n";
     128        echo __("1 comment unchanged <br />") . "\n";
    127129        } else {
    128         echo "$ignored comments unchanged <br />\n";
     130        echo sprintf(__("%s comments unchanged <br />"), $ignored) . "\n";
    129131        }
    130132    }
     
    142144    $file = basename(__FILE__);
    143145?>
    144     <p>The following comments are in the moderation queue:</p>
     146    <?php _e('<p>The following comments are in the moderation queue:</p>') ?>
    145147    <form name="approval" action="moderation.php" method="post">
    146148    <input type="hidden" name="action" value="update" />
     
    153155    echo "\n\t<li id='comment-$comment->comment_ID'>";
    154156    ?>
    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>
    156158<?php comment_text() ?>
    157159<p><?php
    158 echo "<a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
    159                 echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;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>
     160echo "<a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit') . "</a>";
     161echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;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>
    163165
    164166    </li>
     
    167169?>
    168170    </ol>
    169     <p class="submit"><input type="submit" name="submit" value="Moderate Comments &raquo;" /></p>
     171    <p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments &raquo;') ?>" /></p>
    170172    </form>
    171173<?php
    172174} else {
    173175    // 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";
    175177}
    176178?>
Note: See TracChangeset for help on using the changeset viewer.