From 1561dc52313ad0d9efa979b1c40bd54a7fa51b43 Mon Sep 17 00:00:00 2001 From: rboren Date: Thu, 22 Apr 2004 23:32:34 +0000 Subject: [PATCH] Mark strings for translation. git-svn-id: http://svn.automattic.com/wordpress/trunk@1130 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 53 ++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 25 deletions(-) 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

+

-

Category name:
+


-

Category parent:
+


-

Description:
+ +


-

+

@@ -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'))); } ?>
-

Current Categories (add new)

+

add new)'), '#addcat') ?>

- - - - + + + +
-

Note:
- Deleting a category does not delete posts from that category, it will just - set them back to the default category . +

Note:
+Deleting a category does not delete posts from that category, it will just +set them back to the default category %s.'), get_catname(1)) ?>

-

Add New Category

+

-

Name:
+


-

Category parent:
+


-

Description: (optional)
+


-

+

NameDescription# PostsAction