Split the default password nag text to several translatable strings

git-svn-id: http://svn.automattic.com/wordpress/trunk@14170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nbachiyski 2010-04-20 17:15:07 +00:00
parent 9aff4a6206
commit a8f935789b
1 changed files with 7 additions and 3 deletions

View File

@ -851,9 +851,13 @@ function default_password_nag() {
if ( ! get_user_option('default_password_nag') ) //Short circuit it.
return;
echo '<div class="error default-password-nag"><p><strong>' . __('Notice:') . '</strong> ';
printf(__("You're using the auto-generated password for your account. Would you like to change it to something you'll remember easier?<br/>
<a href='%s'>Yes, take me to my profile page</a> | <a href='%s' id='default-password-nag-no'>No thanks, do not remind me again</a>"), admin_url('profile.php') . '#password', '?default_password_nag=0');
echo '<div class="error default-password-nag">';
echo '<p>';
echo '<strong>' . __('Notice:') . '</strong> ';
_e('You&rsquo;re using the auto-generated password for your account. Would you like to change it to something you&rsquo;ll remember easier?');
echo '<br /><br />';
printf( '<a href="%s">'.__('Yes, take me to my profile page').'</a> | ', admin_url('profile.php') . '#password' );
printf( '<a href="%s" id="default-password-nag-no">'.__('No thanks, do not remind me again').'</a>', '?default_password_nag=0' );
echo '</p></div>';
}