Mark strings for translation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
09752fd4de
commit
af562386ed
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
|
|
||||||
<p align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $wp_version ?> — <a href="http://wordpress.org/support/">Support Forums</a><br />
|
<p align="center" style="width: 100%" class="tabletoprow"><?php printf(__('<strong><a href="%s">WordPress</a></strong> %s — <a href="%s">Support Forums</a><br />'), 'http://wordpress.org', $wp_version, 'http://wordpress.org/support/') ?>
|
||||||
<?php
|
<?php
|
||||||
echo number_format(timer_stop(), 2)." seconds";
|
printf(__('%s seconds'), number_format(timer_stop(), 2));
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ require(ABSPATH.'/wp-admin/admin-functions.php');
|
||||||
|
|
||||||
function gethelp_link($this_file, $helptag) {
|
function gethelp_link($this_file, $helptag) {
|
||||||
$url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
|
$url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
|
||||||
$s = ' <a href="'.$url.'" title="Click here for help">?</a>';
|
$s = ' <a href="'.$url.'" title="' . __('Click here for help') .'">?</a>';
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ window.onload = blurry;
|
||||||
<?php wp_admin_head(); ?>
|
<?php wp_admin_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="wphead"><a href="http://wordpress.org" rel="external" title="Visit WordPress.org">WordPress</a></h1>
|
<h1 id="wphead"><a href="http://wordpress.org" rel="external" title="<?php _e('Visit WordPress.org') ?>"><?php _e('WordPress') ?></a></h1>
|
||||||
<?php
|
<?php
|
||||||
if ($profile==0) {
|
if ($profile==0) {
|
||||||
include('menu.php');
|
include('menu.php');
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
|
|
||||||
$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));
|
$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));
|
||||||
|
|
||||||
$submitbutton_text = 'Blog this!';
|
$submitbutton_text = __('Blog this!');
|
||||||
$toprow_title = 'New Post';
|
$toprow_title = __('New Post');
|
||||||
$form_action = 'post';
|
$form_action = 'post';
|
||||||
$form_extra = '';
|
$form_extra = '';
|
||||||
if (get_settings('use_pingback')) {
|
if (get_settings('use_pingback')) {
|
||||||
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
|
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
|
||||||
if ($post_pingback) $form_pingback .= 'checked="checked" ';
|
if ($post_pingback) $form_pingback .= 'checked="checked" ';
|
||||||
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback"><strong>PingBack</strong> the <acronym title="Uniform Resource Locators">URL</acronym>s in this post</label> <a href="http://wordpress.org/docs/reference/post/#pingback" title="Help on Pingbacks">?</a><br />';
|
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">' . sprintf(__('<strong>PingBack</strong> the <acronym title="Uniform Resource Locators">URL</acronym>s in this post</label> <a href="%s" title="Help on Pingbacks">?</a><br />'), 'http://wordpress.org/docs/reference/post/#pingback');
|
||||||
} else {
|
} else {
|
||||||
$form_pingback = '';
|
$form_pingback = '';
|
||||||
}
|
}
|
||||||
if (get_settings('use_trackback')) {
|
if (get_settings('use_trackback')) {
|
||||||
$form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="Help on trackbacks"><strong>TrackBack</strong> an <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <acronym title="Uniform Resource Locator">URL</acronym>s with spaces.)<br />
|
$form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> an <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <acronym title="Uniform Resource Locator">URL</acronym>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
|
||||||
<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
|
'<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
|
||||||
if ('' != $pinged) {
|
if ('' != $pinged) {
|
||||||
$form_trackback .= '<p>Already pinged:</p><ul>';
|
$form_trackback .= '<p>' . __('Already pinged:') . '</p><ul>';
|
||||||
$already_pinged = explode("\n", trim($pinged));
|
$already_pinged = explode("\n", trim($pinged));
|
||||||
foreach ($already_pinged as $pinged_url) {
|
foreach ($already_pinged as $pinged_url) {
|
||||||
$form_trackback .= "\n\t<li>$pinged_url</li>";
|
$form_trackback .= "\n\t<li>$pinged_url</li>";
|
||||||
|
@ -61,22 +61,22 @@ window.onload = focusit;
|
||||||
</style>
|
</style>
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
<fieldset id="titlediv">
|
<fieldset id="titlediv">
|
||||||
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="Help on titles">Title</a></legend>
|
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
|
||||||
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
|
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset id="categorydiv">
|
<fieldset id="categorydiv">
|
||||||
<legend><a href="http://wordpress.org/docs/reference/post/#category" title="Help on categories">Categories</a></legend>
|
<legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend>
|
||||||
<div><?php dropdown_categories($default_post_cat); ?></div>
|
<div><?php dropdown_categories($default_post_cat); ?></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<fieldset id="postdiv">
|
<fieldset id="postdiv">
|
||||||
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="Help with post field">Post</a></legend>
|
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
|
||||||
<div id="quicktags">
|
<div id="quicktags">
|
||||||
<?php
|
<?php
|
||||||
if (get_settings('use_quicktags') && 'bookmarklet' != $mode) {
|
if (get_settings('use_quicktags') && 'bookmarklet' != $mode) {
|
||||||
echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="Help with quicktags">Quicktags</a>: ';
|
echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="' . __('Help with quicktags') . '">' . __('Quicktags') . '</a>: ';
|
||||||
include('quicktags.php');
|
include('quicktags.php');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -103,11 +103,11 @@ edCanvas = document.getElementById('content');
|
||||||
<?php echo $form_pingback ?>
|
<?php echo $form_pingback ?>
|
||||||
<?php echo $form_prevstatus ?>
|
<?php echo $form_prevstatus ?>
|
||||||
<?php echo $form_trackback; ?>
|
<?php echo $form_trackback; ?>
|
||||||
<p><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" />
|
<p><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" />
|
||||||
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="Save as Private" />
|
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
|
||||||
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" />
|
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
|
||||||
<?php if ('bookmarklet' != $mode) {
|
<?php if ('bookmarklet' != $mode) {
|
||||||
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="Advanced Editing »" />';
|
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing »') . '" />';
|
||||||
} ?>
|
} ?>
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -21,7 +21,7 @@ foreach ($menu as $item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<li><a href="<?php echo get_settings('siteurl') . '/' . get_settings('blogfilename'); ?>" title="View your site">View site »</a></li>
|
<li><a href="<?php echo get_settings('siteurl') . '/' . get_settings('blogfilename'); ?>" title="<?php _e('View your site') ?>"><?php _e('View site') ?> »</a></li>
|
||||||
<li class="last"><a href="<?php echo get_settings('siteurl')
|
<li class="last"><a href="<?php echo get_settings('siteurl')
|
||||||
?>/wp-login.php?action=logout" title="Log out of this account">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li>
|
?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php printf(__('Logout (%s)'), stripslashes($user_nickname)) ?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
/* <Edit> */
|
/* <Edit> */
|
||||||
|
|
||||||
|
require_once('../wp-includes/wp-l10n.php');
|
||||||
|
|
||||||
function add_magic_quotes($array) {
|
function add_magic_quotes($array) {
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
if (is_array($v)) {
|
if (is_array($v)) {
|
||||||
|
@ -84,7 +86,7 @@ switch($action) {
|
||||||
$trackback = preg_replace('|\s+|', '\n', $trackback);
|
$trackback = preg_replace('|\s+|', '\n', $trackback);
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
if (($user_level > 4) && (!empty($HTTP_POST_VARS['edit_date']))) {
|
if (($user_level > 4) && (!empty($HTTP_POST_VARS['edit_date']))) {
|
||||||
$aa = $HTTP_POST_VARS['aa'];
|
$aa = $HTTP_POST_VARS['aa'];
|
||||||
|
@ -212,7 +214,7 @@ switch($action) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'edit':
|
case 'edit':
|
||||||
$title = 'Edit';
|
$title = __('Edit');
|
||||||
|
|
||||||
$standalone = 0;
|
$standalone = 0;
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
@ -245,9 +247,9 @@ switch($action) {
|
||||||
start_wp();
|
start_wp();
|
||||||
?>
|
?>
|
||||||
<div id='preview' class='wrap'>
|
<div id='preview' class='wrap'>
|
||||||
<h2>Post Preview (updated when post is saved)</h2>
|
<h2><?php _e('Post Preview (updated when post is saved)'); ?></h2>
|
||||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
|
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), the_title()); ?>"><?php the_title(); ?></a></h3>
|
||||||
<div class="meta">Filed under: <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
<div class="meta"><?php printf(__("Filed under: %s"), the_category()); ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||||
|
|
||||||
<div class="storycontent">
|
<div class="storycontent">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
@ -256,11 +258,9 @@ switch($action) {
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1,
|
<p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, in order to be authorized to post.<br />
|
||||||
in order to be authorized to post.<br />
|
You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
|
||||||
You can also <a href="mailto:<?php echo get_settings('admin_email'); ?>?subject=Promotion?">e-mail the admin</a>
|
When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_settings('admin_email')); ?>
|
||||||
to ask for a promotion.<br />
|
|
||||||
When you’re promoted, just reload this page and you’ll be able to blog. :)
|
|
||||||
</p>
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -272,7 +272,7 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
if (!isset($blog_ID)) {
|
if (!isset($blog_ID)) {
|
||||||
$blog_ID = 1;
|
$blog_ID = 1;
|
||||||
|
@ -417,11 +417,11 @@ switch($action) {
|
||||||
die ('Cheatin’ uh?');
|
die ('Cheatin’ uh?');
|
||||||
|
|
||||||
$post_id = intval($HTTP_GET_VARS['post']);
|
$post_id = intval($HTTP_GET_VARS['post']);
|
||||||
$postdata = get_postdata($post_id) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
|
$postdata = get_postdata($post_id) or die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'post.php'));
|
||||||
$authordata = get_userdata($postdata['Author_ID']);
|
$authordata = get_userdata($postdata['Author_ID']);
|
||||||
|
|
||||||
if ($user_level < $authordata->user_level)
|
if ($user_level < $authordata->user_level)
|
||||||
die ('You don’t have the right to delete <strong>'.$authordata[1].'</strong>’s posts.');
|
die (sprintf(__('You don’t have the right to delete <strong>%s</strong>’s posts.'), $authordata[1]));
|
||||||
|
|
||||||
// send geoURL ping to "erase" from their DB
|
// send geoURL ping to "erase" from their DB
|
||||||
$query = "SELECT post_lat from $tableposts WHERE ID=$post_id";
|
$query = "SELECT post_lat from $tableposts WHERE ID=$post_id";
|
||||||
|
@ -434,7 +434,7 @@ switch($action) {
|
||||||
|
|
||||||
$result = $wpdb->query("DELETE FROM $tableposts WHERE ID=$post_id");
|
$result = $wpdb->query("DELETE FROM $tableposts WHERE ID=$post_id");
|
||||||
if (!$result)
|
if (!$result)
|
||||||
die('Error in deleting...');
|
die(__('Error in deleting...'));
|
||||||
|
|
||||||
$result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_post_ID=$post_id");
|
$result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_post_ID=$post_id");
|
||||||
|
|
||||||
|
@ -451,7 +451,7 @@ switch($action) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'editcomment':
|
case 'editcomment':
|
||||||
$title = 'Edit Comment';
|
$title = __('Edit Comment');
|
||||||
$standalone = 0;
|
$standalone = 0;
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'edit.php';
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
|
@ -459,11 +459,11 @@ switch($action) {
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
||||||
if ($user_level == 0) {
|
if ($user_level == 0) {
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
$commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID. <a href="javascript:history.go(-1)">Go back</a>!');
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
|
||||||
$content = $commentdata['comment_content'];
|
$content = $commentdata['comment_content'];
|
||||||
$content = format_to_edit($content);
|
$content = format_to_edit($content);
|
||||||
|
|
||||||
|
@ -477,30 +477,30 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
$p = $HTTP_GET_VARS['p'];
|
$p = $HTTP_GET_VARS['p'];
|
||||||
$commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID. <a href="edit.php">Go back</a>!');
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
|
|
||||||
echo "<div class=\"wrap\">\n";
|
echo "<div class=\"wrap\">\n";
|
||||||
echo "<p><strong>Caution:</strong> You are about to delete the following comment:</p>\n";
|
echo "<p><?php __('<strong>Caution:</strong> You are about to delete the following comment:'); ?></p>\n";
|
||||||
echo "<table border=\"0\">\n";
|
echo "<table border=\"0\">\n";
|
||||||
echo "<tr><td>Author:</td><td>" . $commentdata["comment_author"] . "</td></tr>\n";
|
echo "<tr><td>" . __('Author:') . "</td><td>" . $commentdata["comment_author"] . "</td></tr>\n";
|
||||||
echo "<tr><td>E-Mail:</td><td>" . $commentdata["comment_author_email"] . "</td></tr>\n";
|
echo "<tr><td>" . __('E-Mail:') . "</td><td>" . $commentdata["comment_author_email"] . "</td></tr>\n";
|
||||||
echo "<tr><td>URL:</td><td>" . $commentdata["comment_author_url"] . "</td></tr>\n";
|
echo "<tr><td>". __('URL:') . "</td><td>" . $commentdata["comment_author_url"] . "</td></tr>\n";
|
||||||
echo "<tr><td>Comment:</td><td>" . stripslashes($commentdata["comment_content"]) . "</td></tr>\n";
|
echo "<tr><td>". __('Comment:') . "</td><td>" . stripslashes($commentdata["comment_content"]) . "</td></tr>\n";
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
echo "<p>Are you sure you want to do that?</p>\n";
|
echo "<p>" . __('Are you sure you want to do that?') . "</p>\n";
|
||||||
|
|
||||||
echo "<form action='".get_settings('siteurl')."/wp-admin/post.php' method='get'>\n";
|
echo "<form action='".get_settings('siteurl')."/wp-admin/post.php' method='get'>\n";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"deletecomment\" />\n";
|
echo "<input type=\"hidden\" name=\"action\" value=\"deletecomment\" />\n";
|
||||||
echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n";
|
echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n";
|
||||||
echo "<input type=\"hidden\" name=\"comment\" value=\"$comment\" />\n";
|
echo "<input type=\"hidden\" name=\"comment\" value=\"$comment\" />\n";
|
||||||
echo "<input type=\"hidden\" name=\"noredir\" value=\"1\" />\n";
|
echo "<input type=\"hidden\" name=\"noredir\" value=\"1\" />\n";
|
||||||
echo "<input type=\"submit\" value=\"Yes\" />";
|
echo "<input type=\"submit\" value=\"" . __('Yes') . "\" />";
|
||||||
echo " ";
|
echo " ";
|
||||||
echo "<input type=\"button\" value=\"No\" onClick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments';\" />\n";
|
echo "<input type=\"button\" value=\"" . __('No') . "\" onClick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments';\" />\n";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
|
@ -523,12 +523,12 @@ switch($action) {
|
||||||
$noredir = false;
|
$noredir = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$postdata = get_postdata($p) or die('Oops, no post with this ID. <a href="edit.php">Go back</a>!');
|
$postdata = get_postdata($p) or die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
$commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID. <a href="post.php">Go back</a>!');
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
|
||||||
|
|
||||||
$authordata = get_userdata($postdata['Author_ID']);
|
$authordata = get_userdata($postdata['Author_ID']);
|
||||||
if ($user_level < $authordata->user_level)
|
if ($user_level < $authordata->user_level)
|
||||||
die ('You don’t have the right to delete <strong>'.$authordata->user_nickname.'</strong>’s post comments. <a href="post.php">Go back</a>!');
|
die (sprintf(__('You don’t have the right to delete <strong>%s</strong>’s post comments. <a href="%s">Go back</a>!'), $authordata->user_nickname, 'post.php'));
|
||||||
|
|
||||||
wp_set_comment_status($comment, "delete");
|
wp_set_comment_status($comment, "delete");
|
||||||
do_action('delete_comment', $comment);
|
do_action('delete_comment', $comment);
|
||||||
|
@ -547,7 +547,7 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
$p = $HTTP_GET_VARS['p'];
|
$p = $HTTP_GET_VARS['p'];
|
||||||
|
@ -557,7 +557,7 @@ switch($action) {
|
||||||
$noredir = false;
|
$noredir = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$commentdata = get_commentdata($comment) or die('Oops, no comment with this ID. <a href="edit.php">Go back</a>!');
|
$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
|
|
||||||
wp_set_comment_status($comment, "hold");
|
wp_set_comment_status($comment, "hold");
|
||||||
|
|
||||||
|
@ -575,11 +575,11 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
$p = $HTTP_GET_VARS['p'];
|
$p = $HTTP_GET_VARS['p'];
|
||||||
$commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID. <a href="edit.php">Go back</a>!');
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
|
|
||||||
wp_set_comment_status($comment, "approve");
|
wp_set_comment_status($comment, "approve");
|
||||||
if (get_settings("comments_notify") == true) {
|
if (get_settings("comments_notify") == true) {
|
||||||
|
@ -587,12 +587,12 @@ switch($action) {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<div class=\"wrap\">\n";
|
echo "<div class=\"wrap\">\n";
|
||||||
echo "<p>Comment has been approved.</p>\n";
|
echo "<p>" . __('Comment has been approved.') . "</p>\n";
|
||||||
|
|
||||||
echo "<form action=\"". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments\" method=\"get\">\n";
|
echo "<form action=\"". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&c=1#comments\" method=\"get\">\n";
|
||||||
echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n";
|
echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n";
|
||||||
echo "<input type=\"hidden\" name=\"c\" value=\"1\" />\n";
|
echo "<input type=\"hidden\" name=\"c\" value=\"1\" />\n";
|
||||||
echo "<input type=\"submit\" value=\"Ok\" />";
|
echo "<input type=\"submit\" value=\"" . __('Ok') . "\" />";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
||||||
|
@ -604,7 +604,7 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
$comment = $HTTP_GET_VARS['comment'];
|
$comment = $HTTP_GET_VARS['comment'];
|
||||||
$p = $HTTP_GET_VARS['p'];
|
$p = $HTTP_GET_VARS['p'];
|
||||||
|
@ -613,7 +613,7 @@ switch($action) {
|
||||||
} else {
|
} else {
|
||||||
$noredir = false;
|
$noredir = false;
|
||||||
}
|
}
|
||||||
$commentdata = get_commentdata($comment) or die('Oops, no comment with this ID. <a href="edit.php">Go back</a>!');
|
$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
|
|
||||||
wp_set_comment_status($comment, "approve");
|
wp_set_comment_status($comment, "approve");
|
||||||
if (get_settings("comments_notify") == true) {
|
if (get_settings("comments_notify") == true) {
|
||||||
|
@ -635,7 +635,7 @@ switch($action) {
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ('Cheatin’ uh?');
|
die (__('Cheatin’ uh?'));
|
||||||
|
|
||||||
$comment_ID = $HTTP_POST_VARS['comment_ID'];
|
$comment_ID = $HTTP_POST_VARS['comment_ID'];
|
||||||
$comment_post_ID = $HTTP_POST_VARS['comment_post_ID'];
|
$comment_post_ID = $HTTP_POST_VARS['comment_post_ID'];
|
||||||
|
@ -680,8 +680,8 @@ switch($action) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$title = 'Create New Post';
|
|
||||||
$standalone = 0;
|
$standalone = 0;
|
||||||
|
$title = __('Create New Post');
|
||||||
require_once ('./admin-header.php');
|
require_once ('./admin-header.php');
|
||||||
|
|
||||||
if ($user_level > 0) {
|
if ($user_level > 0) {
|
||||||
|
@ -693,7 +693,7 @@ switch($action) {
|
||||||
if ($drafts) {
|
if ($drafts) {
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<p><strong>Your Drafts:</strong>
|
<p><strong><?php _e('Your Drafts:') ?></strong>
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($drafts as $draft) {
|
foreach ($drafts as $draft) {
|
||||||
|
@ -701,8 +701,8 @@ switch($action) {
|
||||||
echo ', ';
|
echo ', ';
|
||||||
$draft->post_title = stripslashes($draft->post_title);
|
$draft->post_title = stripslashes($draft->post_title);
|
||||||
if ($draft->post_title == '')
|
if ($draft->post_title == '')
|
||||||
$draft->post_title = 'Post #'.$draft->ID;
|
$draft->post_title = sprintf(__('Post # %s'), $draft->ID);
|
||||||
echo "<a href='post.php?action=edit&post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
|
echo "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
|
||||||
++$i;
|
++$i;
|
||||||
}
|
}
|
||||||
?>.</p>
|
?>.</p>
|
||||||
|
@ -724,8 +724,8 @@ switch($action) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h3>WordPress bookmarklet</h3>
|
<?php _e('<h3>WordPress bookmarklet</h3>
|
||||||
<p>You can drag the following link to your links bar or add it to your bookmarks and when you "Press it" it will open up a popup window with information and a link to the site you're currently browsing so you can make a quick post about it. Try it out:</p>
|
<p>You can drag the following link to your links bar or add it to your bookmarks and when you "Press it" it will open up a popup window with information and a link to the site you’re currently browsing so you can make a quick post about it. Try it out:</p>') ?>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -733,13 +733,11 @@ $bookmarklet_height= (get_settings('use_trackback')) ? 460 : 420;
|
||||||
|
|
||||||
if ($is_NS4 || $is_gecko) {
|
if ($is_NS4 || $is_gecko) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));">Press It
|
<a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'<?php _e('WordPress bookmarklet') ?>','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));"><?php printf(__('Press It - %s'), get_settings('blogname')); ?></a>
|
||||||
- <?php echo get_settings('blogname'); ?></a>
|
|
||||||
<?php
|
<?php
|
||||||
} else if ($is_winIE) {
|
} else if ($is_winIE) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it
|
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>
|
||||||
- <?php echo get_settings('blogname'); ?></a>
|
|
||||||
<script type="text/javascript" language="JavaScript">
|
<script type="text/javascript" language="JavaScript">
|
||||||
<!--
|
<!--
|
||||||
function oneclickbookmarklet(blah) {
|
function oneclickbookmarklet(blah) {
|
||||||
|
@ -754,13 +752,11 @@ function oneclickbookmarklet(blah) {
|
||||||
<?php
|
<?php
|
||||||
} else if ($is_opera) {
|
} else if ($is_opera) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:void(window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press it
|
<a href="javascript:void(window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>
|
||||||
- <?php echo get_settings('blogname'); ?></a>
|
|
||||||
<?php
|
<?php
|
||||||
} else if ($is_macIE) {
|
} else if ($is_macIE) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it
|
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php prtinf(__('Press it - %s'), get_settings('blogname')); ?></a>
|
||||||
- <?php echo get_settings('blogname'); ?></a>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -772,9 +768,9 @@ function oneclickbookmarklet(blah) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, in order to be authorized to post blog items.<br />
|
<?php printf(__('<p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, in order to be authorized to post blog items.<br />
|
||||||
You can also <a href="mailto:<?php echo get_settings('admin_email'); ?>?subject=Blog posting permission">e-mail the admin</a> to ask for a promotion.<br />
|
You can also <a href="mailto:%s?subject=Blog posting permission">e-mail the admin</a> to ask for a promotion.<br />
|
||||||
When you’re promoted, just reload this page and you’ll be able to blog. :)</p>
|
When you’re promoted, just reload this page and you’ll be able to blog. :)</p>'), get_settings('admin_email')); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue