mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Password UI: The non-breaking space doesn't need to be translatable. Add some context to password strength strings.
see #32589. git-svn-id: https://develop.svn.wordpress.org/trunk@33166 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -365,13 +365,11 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
|
||||
'empty' => __(' '),
|
||||
'short' => __('Very weak'),
|
||||
'bad' => __('Weak'),
|
||||
/* translators: password strength */
|
||||
'good' => _x('Medium', 'password strength'),
|
||||
'strong' => __('Strong'),
|
||||
'mismatch' => __('Mismatch')
|
||||
'short' => _x( 'Very weak', 'password strength' ),
|
||||
'bad' => _x( 'Weak', 'password strength' ),
|
||||
'good' => _x( 'Medium', 'password strength' ),
|
||||
'strong' => _x( 'Strong', 'password strength' ),
|
||||
'mismatch' => _x( 'Mismatch', 'password mismatch' ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user