From 9dfb6f67f8962422b9c350503878a58a8c6611f6 Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 23 Apr 2004 06:46:53 +0000 Subject: [PATCH] Mark strings for translation. git-svn-id: http://svn.automattic.com/wordpress/trunk@1135 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 22 ++++++------ wp-admin/auth.php | 2 +- wp-admin/upload.php | 66 +++++++++++++++++++----------------- 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index face7ab3c7..146d975d4b 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -84,7 +84,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { echo "$pad $category->cat_name $category->category_description $count - Editcat_name) ."\' and all its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop.')\" class='delete'>Delete + " . __('Edit') . "cat_name)) . "')\" class='delete'>" . __('Delete') . " "; cat_rows($category->cat_ID, $level + 1); } @@ -125,11 +125,11 @@ function wp_create_thumbnail($file, $max_side, $effect = '') { // handle. duh. i hope. if(!function_exists('imagegif') && $type[2] == 1) { - $error = 'Filetype not supported. Thumbnail not created.'; + $error = __('Filetype not supported. Thumbnail not created.'); }elseif(!function_exists('imagejpeg') && $type[2] == 2) { - $error = 'Filetype not supported. Thumbnail not created.'; + $error = __('Filetype not supported. Thumbnail not created.'); }elseif(!function_exists('imagepng') && $type[2] == 3) { - $error = 'Filetype not supported. Thumbnail not created.'; + $error = __('Filetype not supported. Thumbnail not created.'); } else { // create the initial copy from the original file @@ -176,15 +176,15 @@ function wp_create_thumbnail($file, $max_side, $effect = '') { if($type[2] == 1) { if(!imagegif($thumbnail, $thumbpath)) { - $error = "Thumbnail path invalid"; + $error = __("Thumbnail path invalid"); } } elseif($type[2] == 2) { if(!imagejpeg($thumbnail, $thumbpath)) { - $error = "Thumbnail path invalid"; + $error = __("Thumbnail path invalid"); } } elseif($type[2] == 3) { if(!imagepng($thumbnail, $thumbpath)) { - $error = "Thumbnail path invalid"; + $error = __("Thumbnail path invalid"); } } @@ -256,9 +256,9 @@ function get_meta_keys() { function meta_form() { $keys = get_meta_keys(); ?> -

Add new custom data to this post:

+

-

Select existing key or enter new key

+

@@ -276,13 +276,13 @@ if ($keys) {
-

Custom Value

+


- +
Error: wrong login or password."; + $error= __("Error: wrong login or password."); } $redir = 'Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']); header($redir); diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 30fed0fe45..f77c6b33a2 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -1,13 +1,15 @@ -

It doesn't look like you can use the file upload feature at this time because the directory you have specified () doesn't appear to be writable by WordPress. Check the permissions on the directory and for typos.

+

%s) doesn't appear to be writable by WordPress. Check the permissions on the directory and for typos."), get_settings('fileupload_realpath')) ?>

-

You can upload files with the extension as long as they are no larger than KB. If you’re an admin you can configure these values under options.

+

KB. If you’re an admin you can configure these values under options.'), $i, get_settings('fileupload_maxk'), 'options-misc.php') ?>

- +

-
+

-

Create a thumbnail?

+

+
+
+
+ : - px (largest side)

-

+

+

-

Duplicate File?

-

The filename '' already exists!

-

filename '' moved to ''

-

Confirm or rename:

+

+

+

+

@@ -148,11 +150,11 @@ case 'upload': - Alternate name:

+


- Description:
+

- +
-

File uploaded!

-

Your file was uploaded successfully !

-

Here’s the code to display it:

+

+

%s was uploaded successfully!"), $img1_name); ?>

+

-

Image Details:
+

:
Name:
-Size: - KB
-Type: + + KB') ?>
+

-

Upload another.

+