+
@@ -256,11 +258,9 @@ switch($action) {
-
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.
- You can also e-mail the admin
- to ask for a promotion.
- When you’re promoted, just reload this page and you’ll be able to blog. :)
+
+You can also e-mail the admin to ask for a promotion.
+When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_settings('admin_email')); ?>
Go back!');
+ $postdata = get_postdata($post_id) or die(sprintf(__('Oops, no post with this ID.
Go back!'), 'post.php'));
$authordata = get_userdata($postdata['Author_ID']);
if ($user_level < $authordata->user_level)
- die ('You don’t have the right to delete
'.$authordata[1].'’s posts.');
+ die (sprintf(__('You don’t have the right to delete
%s’s posts.'), $authordata[1]));
// send geoURL ping to "erase" from their DB
$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");
if (!$result)
- die('Error in deleting...');
+ die(__('Error in deleting...'));
$result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_post_ID=$post_id");
@@ -451,7 +451,7 @@ switch($action) {
break;
case 'editcomment':
- $title = 'Edit Comment';
+ $title = __('Edit Comment');
$standalone = 0;
$parent_file = 'edit.php';
require_once ('admin-header.php');
@@ -459,11 +459,11 @@ switch($action) {
get_currentuserinfo();
if ($user_level == 0) {
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
}
$comment = $HTTP_GET_VARS['comment'];
- $commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID.
Go back!');
+ $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'javascript:history.go(-1)'));
$content = $commentdata['comment_content'];
$content = format_to_edit($content);
@@ -477,30 +477,30 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment = $HTTP_GET_VARS['comment'];
$p = $HTTP_GET_VARS['p'];
- $commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID.
Go back!');
+ $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'edit.php'));
echo "
\n";
- echo "
Caution: You are about to delete the following comment:
\n";
+ echo "
Caution: You are about to delete the following comment:'); ?>
\n";
echo "
\n";
- echo "| Author: | " . $commentdata["comment_author"] . " |
\n";
- echo "| E-Mail: | " . $commentdata["comment_author_email"] . " |
\n";
- echo "| URL: | " . $commentdata["comment_author_url"] . " |
\n";
- echo "| Comment: | " . stripslashes($commentdata["comment_content"]) . " |
\n";
+ echo "| " . __('Author:') . " | " . $commentdata["comment_author"] . " |
\n";
+ echo "| " . __('E-Mail:') . " | " . $commentdata["comment_author_email"] . " |
\n";
+ echo "| ". __('URL:') . " | " . $commentdata["comment_author_url"] . " |
\n";
+ echo "| ". __('Comment:') . " | " . stripslashes($commentdata["comment_content"]) . " |
\n";
echo "
\n";
- echo "
Are you sure you want to do that?
\n";
+ echo "
" . __('Are you sure you want to do that?') . "
\n";
echo "
\n";
echo "
\n";
@@ -512,7 +512,7 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment = $HTTP_GET_VARS['comment'];
@@ -523,12 +523,12 @@ switch($action) {
$noredir = false;
}
- $postdata = get_postdata($p) or die('Oops, no post with this ID.
Go back!');
- $commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID.
Go back!');
+ $postdata = get_postdata($p) or die(sprintf(__('Oops, no post with this ID.
Go back!'), 'edit.php'));
+ $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'post.php'));
$authordata = get_userdata($postdata['Author_ID']);
if ($user_level < $authordata->user_level)
- die ('You don’t have the right to delete
'.$authordata->user_nickname.'’s post comments.
Go back!');
+ die (sprintf(__('You don’t have the right to delete
%s’s post comments.
Go back!'), $authordata->user_nickname, 'post.php'));
wp_set_comment_status($comment, "delete");
do_action('delete_comment', $comment);
@@ -547,7 +547,7 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment = $HTTP_GET_VARS['comment'];
$p = $HTTP_GET_VARS['p'];
@@ -557,7 +557,7 @@ switch($action) {
$noredir = false;
}
- $commentdata = get_commentdata($comment) or die('Oops, no comment with this ID.
Go back!');
+ $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'edit.php'));
wp_set_comment_status($comment, "hold");
@@ -575,11 +575,11 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment = $HTTP_GET_VARS['comment'];
$p = $HTTP_GET_VARS['p'];
- $commentdata = get_commentdata($comment, 1, true) or die('Oops, no comment with this ID.
Go back!');
+ $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'edit.php'));
wp_set_comment_status($comment, "approve");
if (get_settings("comments_notify") == true) {
@@ -587,12 +587,12 @@ switch($action) {
}
echo "
\n";
- echo "
Comment has been approved.
\n";
+ echo "
" . __('Comment has been approved.') . "
\n";
echo "
\n";
echo "
\n";
@@ -604,7 +604,7 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment = $HTTP_GET_VARS['comment'];
$p = $HTTP_GET_VARS['p'];
@@ -613,7 +613,7 @@ switch($action) {
} else {
$noredir = false;
}
- $commentdata = get_commentdata($comment) or die('Oops, no comment with this ID.
Go back!');
+ $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'edit.php'));
wp_set_comment_status($comment, "approve");
if (get_settings("comments_notify") == true) {
@@ -635,7 +635,7 @@ switch($action) {
require_once('./admin-header.php');
if ($user_level == 0)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$comment_ID = $HTTP_POST_VARS['comment_ID'];
$comment_post_ID = $HTTP_POST_VARS['comment_post_ID'];
@@ -680,8 +680,8 @@ switch($action) {
break;
default:
- $title = 'Create New Post';
$standalone = 0;
+ $title = __('Create New Post');
require_once ('./admin-header.php');
if ($user_level > 0) {
@@ -693,7 +693,7 @@ switch($action) {
if ($drafts) {
?>
-
Your Drafts:
+
post_title = stripslashes($draft->post_title);
if ($draft->post_title == '')
- $draft->post_title = 'Post #'.$draft->ID;
- echo "$draft->post_title";
+ $draft->post_title = sprintf(__('Post # %s'), $draft->ID);
+ echo "$draft->post_title";
++$i;
}
?>.
@@ -724,8 +724,8 @@ switch($action) {
}
?>
-
WordPress bookmarklet
-
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:
+WordPress bookmarklet
+
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:
') ?>
- Press It
- -
+
- Press it
- -
+