i18n fixes from SteveAgl. fixes #2207
git-svn-id: http://svn.automattic.com/wordpress/trunk@3393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b60db381c7
commit
ee8b3c94df
|
@ -290,7 +290,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
|
||||||
} else {
|
} else {
|
||||||
if (!empty($post->post_password)) { // if there's a password
|
if (!empty($post->post_password)) { // if there's a password
|
||||||
if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
|
if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
|
||||||
echo('Enter your password to view comments');
|
echo(__('Enter your password to view comments'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
function get_the_password_form() {
|
function get_the_password_form() {
|
||||||
$output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post">
|
$output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post">
|
||||||
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
|
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
|
||||||
<p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p>
|
<p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="' . __("Submit") . '" value="Submit" /></p>
|
||||||
</form>
|
</form>
|
||||||
';
|
';
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue