diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index c599049a98..710887f0ee 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -1,5 +1,7 @@
*/
function add_magic_quotes($array) {
@@ -43,7 +45,7 @@ case 'addcat':
require_once('admin-header.php');
if ($user_level < 3)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$cat_name= addslashes(stripslashes(stripslashes($_POST['cat_name'])));
$category_nicename = sanitize_title($cat_name);
@@ -68,10 +70,10 @@ case 'Delete':
$cat_parent = $category->category_parent;
if (1 == $cat_ID)
- die("Can't delete the $cat_name category: this is the default one");
+ die(sprintf(__("Can't delete the %s category: this is the default one"), $cat_name));
if ($user_level < 3)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$wpdb->query("DELETE FROM $tablecategories WHERE cat_ID = $cat_ID");
$wpdb->query("UPDATE $tablecategories SET category_parent=$cat_parent WHERE category_parent=$cat_ID");
@@ -89,21 +91,22 @@ case 'edit':
?>
-
Edit Category
+
@@ -117,7 +120,7 @@ case 'editedcat':
require_once('admin-header.php');
if ($user_level < 3)
- die ('Cheatin’ uh?');
+ die (__('Cheatin’ uh?'));
$cat_name = addslashes(stripslashes(stripslashes($_POST['cat_name'])));
$cat_ID = addslashes($_POST['cat_ID']);
@@ -135,18 +138,18 @@ default:
$standalone = 0;
require_once ('admin-header.php');
if ($user_level < 3) {
- die("You have no right to edit the categories for this blog. Ask for a promotion to your blog admin. :)");
+ die(sprintf(__("You have no right to edit the categories for this blog. Ask for a promotion to your blog admin. :)"), get_settings('admin_email')));
}
?>