From bbd61f92a5318e61f7746a60239c941594421c54 Mon Sep 17 00:00:00 2001 From: rboren Date: Sun, 25 Apr 2004 23:57:43 +0000 Subject: [PATCH] Mark strings for translation. git-svn-id: http://svn.automattic.com/wordpress/trunk@1176 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/templates.php | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 7f79b08ca..fdde34372 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -1,5 +1,7 @@ $v) { @@ -14,10 +16,10 @@ function add_magic_quotes($array) { function validate_file($file) { if ('..' == substr($file,0,2)) - die ('Sorry, can’t edit files with ".." in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.'); + die (__('Sorry, can’t edit files with ".." in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.')); if (':' == substr($file,1,1)) - die ('Sorry, can’t call files with their real path.'); + die (__('Sorry, can’t call files with their real path.')); if ('/' == substr($file,0,1)) $file = '.' . $file; @@ -58,7 +60,7 @@ case 'update': require_once("admin-header.php"); if ($user_level < 5) { - die('

You have do not have sufficient permissions to edit templates for this blog.

'); + die(__('

You have do not have sufficient permissions to edit templates for this blog.

')); } $newcontent = stripslashes($_POST['newcontent']); @@ -83,7 +85,7 @@ default: require_once('admin-header.php'); if ($user_level <= 5) { - die('

You have do not have sufficient permissions to edit templates for this blog.

'); + die(__('

You have do not have sufficient permissions to edit templates for this blog.

')); } if ('' == $file) { @@ -101,7 +103,7 @@ default: $error = 1; if ((substr($file,0,2) == 'wp') and (substr($file,-4,4) == '.php') and ($file != 'wp.php')) - $warning = ' — this is a WordPress file, be careful when editing it!'; + $warning = __(' — this is a WordPress file, be careful when editing it!'); if (!$error) { $f = fopen($real_file, 'r'); @@ -112,11 +114,11 @@ default: ?> -

File edited successfully.

+

Editing $file $warning

"; + echo "

" . sprintf(__('Editing %s'), $file) . " $warning

"; if (!$error) { ?> @@ -129,30 +131,30 @@ default: if (is_writeable($real_file)) { echo ""; } else { - echo ""; + echo ""; } ?>

Oops, no such file exists! Double check the name and try again, merci.

'; + echo '

' . __('Oops, no such file exists! Double check the name and try again, merci.') . '

'; } ?>
-

To edit a file, type its name here. You can edit any file writable by the server, e.g. CHMOD 666.

+

writable by the server, e.g. CHMOD 666.') ?>

- +
-

Common files: (click to edit)

+

-

Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.

+

\ No newline at end of file +include("admin-footer.php") ?>