diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 7f79b08ca0..fdde34372f 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.
" . 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.
' . __('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.
+