Make WordPress Core


Ignore:
Timestamp:
04/23/2004 03:23:05 AM (23 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r1100 r1131  
    11<?php
    2 $title = 'Edit Comments';
     2require_once('../wp-includes/wp-l10n.php');
     3
     4$title = __('Edit Comments');
    35$parent_file = 'edit.php';
    46require_once('admin-header.php');
    … …  
    79?>
    810<ul id="adminmenu2">
    9         <li><a href="edit.php">Posts</a></li>
    10         <li><a href="edit-comments.php" class="current">Comments</a></li>
    11         <li class="last"><a href="moderation.php">Awaiting Moderation</a></li>
     11        <li><a href="edit.php"><?php _e('Posts') ?></a></li>
     12    <li><a href="edit-comments.php" class="current"><?php _e('Comments') ?></a></li>
     13    <li class="last"><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li>
    1214</ul>
    1315<script type="text/javascript">
    … …  
    2931<form name="searchform" action="" method="get">
    3032  <fieldset>
    31   <legend>Show Comments That Contain...</legend>
     33  <legend><?php _e('Show Comments That Contain...') ?></legend>
    3234  <input type="text" name="s" value="<?php echo $s; ?>" size="17" />
    33   <input type="submit" name="submit" value="Search"  /> 
     35  <input type="submit" name="submit" value="<?php _e('Search') ?>"  /> 
    3436  <input type="hidden" name="mode" value="<?php echo $mode; ?>" />
    35    (Searches within comment text, email, URI, and IP address.)
     37  <?php _e('(Searches within comment text, email, URI, and IP address.)') ?>
    3638  </fieldset>
    3739</form>
    38 <p><a href="?mode=view">View Mode</a> | <a href="?mode=edit">Mass Edit Mode</a></p>
     40<p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
    3941<?php
    4042if (!empty($delete_comments)) {
    … …  
    5153                }
    5254        }
    53         echo "<div class='wrap'><p>$i comments deleted.</p></div>";
     55        echo "<div class='wrap'><p>" . sprintf(__('%s comments deleted.'), $i) . "</p></div>";
    5456}
    5557
    … …  
    7880                        }
    7981                ?>             
    80                 <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>
     82        <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>
    8183               
    8284                <?php comment_text() ?>
    83                 <p>Posted <?php comment_date('M j, g:i A') ?> | <?php
     85
     86        <p><?php _e('Posted'); echo ' '; comment_date('M j, g:i A'); ?> | <?php
    8487                        if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    85                                 echo "<a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit Comment</a>";
    86                                 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 Comment</a> &#8212; ";
     88                                echo "<a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit Comment') . "</a>";
     89                                echo " | <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 Comment') . "</a> &#8212; ";
    8790                        } // end if any comments to show
    8891                        // Get post title
    8992                        $post_title = $wpdb->get_var("SELECT post_title FROM $tableposts WHERE ID = $comment->comment_post_ID");
    9093                        $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
    91                         ?> <a href="post.php?action=edit&amp;post=<?php echo $comment->comment_post_ID; ?>">Edit Post &#8220;<?php echo stripslashes($post_title); ?>&#8221;</a> | <a href="<?php echo get_permalink($comment->comment_post_ID); ?>">View Post</a></p>
     94                        ?> <a href="post.php?action=edit&amp;post=<?php echo $comment->comment_post_ID; ?>"><?php printf(__('Edit Post &#8220;%s&#8221;'), stripslashes($post_title)); ?></a> | <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php _e('View Post') ?></a></p>
    9295                </li>
    9396
    … …  
    99102                ?>
    100103                <p>
    101                 <strong>No results found.</strong></p>
     104        <strong><?php _e('No results found.') ?></strong></p>
    102105               
    103106                <?php
    … …  
    110113  <tr>
    111114    <th scope="col">*</th>
    112     <th scope="col">Name</th>
    113     <th scope="col">Email</th>
    114     <th scope="col">IP</th>
    115     <th scope="col">Comment Excerpt</th>
    116         <th scope="col" colspan="3">Actions</th>
     115    <th scope="col">' .  __('Name') . '</th>
     116    <th scope="col">' .  __('Email') . '</th>
     117    <th scope="col">' . __('IP') . '</th>
     118    <th scope="col">' . __('Comment Excerpt') . '</th>
     119        <th scope="col" colspan="3">' .  __('Actions') . '</th>
    117120  </tr>';
    118121                foreach ($comments as $comment) {
    … …  
    126129    <td><a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></td>
    127130    <td><?php comment_excerpt(); ?></td>
    128         <td><a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" class="edit">View</a></td>
     131    <td><a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" class="edit"><?php _e('View') ?></a></td>
    129132    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    130                                 echo "<a href='post.php?action=editcomment&amp;comment=$comment->comment_ID' class='edit'>Edit</a>"; } ?></td>
     133        echo "<a href='post.php?action=editcomment&amp;comment=$comment->comment_ID' class='edit'>" .  __('Edit') . "</a>"; } ?></td>
    131134    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    132                                 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.')\" class='delete'>Delete</a>"; } ?></td>
     135            echo "<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) . "')\"    class='delete'>" . __('Delete') . "</a>"; } ?></td>
    133136  </tr>
    134137                <?php
    135138                } // end foreach
    136139        ?></table>
    137         <p><a href="javascript:;" onclick="checkAll(document.getElementById('deletecomments')); return false; ">Invert Checkbox Selection</a></p>
    138     <p style="text-align: right;"><input type="submit" name="Submit" value="Delete Checked Comments" onclick="return confirm('You are about to delete these comments permanently \n  \'Cancel\' to stop, \'OK\' to delete.')" />        </p>
     140    <p><a href="javascript:;" onclick="checkAll(document.getElementById('deletecomments')); return false; "><?php _e('Invert Checkbox Selection') ?></a></p>
     141            <p style="text-align: right;"><input type="submit" name="Submit" value="<?php _e('Delete Checked Comments') ?>" onclick="return confirm('<?php _e("You are about to delete these comments permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /> </p>
    139142  </form>
    140143<?php
    … …  
    142145?>
    143146<p>
    144 <strong>No results found.</strong>
     147<strong><?php _e('No results found.') ?></strong>
    145148</p>
    146149<?php
Note: See TracChangeset for help on using the changeset viewer.