Coding Standards: Move some translator comments to the correct place.

Follow-up to [46273], [50060], [50117].

Merges [50654] to the 5.7 branch.
See #52627.
Built from https://develop.svn.wordpress.org/branches/5.7@50655


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-04-04 18:34:04 +00:00
parent 8bda8b2847
commit 69bfd1ff63
4 changed files with 13 additions and 13 deletions

View File

@ -331,8 +331,8 @@ When seeking help with this issue, you may be asked for some of the following in
}
$debug = array(
/* translators: %s: Current WordPress version number. */
'wp' => sprintf(
/* translators: %s: Current WordPress version number. */
__( 'WordPress version %s' ),
$wp_version
),

View File

@ -2284,8 +2284,8 @@ function rest_validate_object_value_from_schema( $value, $args, $param ) {
if ( isset( $args['minProperties'] ) && count( $value ) < $args['minProperties'] ) {
return new WP_Error(
'rest_too_few_properties',
/* translators: 1: Parameter, 2: Number. */
sprintf(
/* translators: 1: Parameter, 2: Number. */
_n(
'%1$s must contain at least %2$s property.',
'%1$s must contain at least %2$s properties.',
@ -2300,8 +2300,8 @@ function rest_validate_object_value_from_schema( $value, $args, $param ) {
if ( isset( $args['maxProperties'] ) && count( $value ) > $args['maxProperties'] ) {
return new WP_Error(
'rest_too_many_properties',
/* translators: 1: Parameter, 2: Number. */
sprintf(
/* translators: 1: Parameter, 2: Number. */
_n(
'%1$s must contain at most %2$s property.',
'%1$s must contain at most %2$s properties.',
@ -2350,8 +2350,8 @@ function rest_validate_array_value_from_schema( $value, $args, $param ) {
if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) {
return new WP_Error(
'rest_too_few_items',
/* translators: 1: Parameter, 2: Number. */
sprintf(
/* translators: 1: Parameter, 2: Number. */
_n(
'%1$s must contain at least %2$s item.',
'%1$s must contain at least %2$s items.',
@ -2366,8 +2366,8 @@ function rest_validate_array_value_from_schema( $value, $args, $param ) {
if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
return new WP_Error(
'rest_too_many_items',
/* translators: 1: Parameter, 2: Number. */
sprintf(
/* translators: 1: Parameter, 2: Number. */
_n(
'%1$s must contain at most %2$s item.',
'%1$s must contain at most %2$s items.',
@ -2456,8 +2456,8 @@ function rest_validate_number_value_from_schema( $value, $args, $param ) {
if ( $value >= $args['maximum'] || $value <= $args['minimum'] ) {
return new WP_Error(
'rest_out_of_bounds',
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
sprintf(
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
__( '%1$s must be between %2$d (exclusive) and %3$d (exclusive)' ),
$param,
$args['minimum'],
@ -2471,8 +2471,8 @@ function rest_validate_number_value_from_schema( $value, $args, $param ) {
if ( $value > $args['maximum'] || $value <= $args['minimum'] ) {
return new WP_Error(
'rest_out_of_bounds',
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
sprintf(
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
__( '%1$s must be between %2$d (exclusive) and %3$d (inclusive)' ),
$param,
$args['minimum'],
@ -2486,8 +2486,8 @@ function rest_validate_number_value_from_schema( $value, $args, $param ) {
if ( $value >= $args['maximum'] || $value < $args['minimum'] ) {
return new WP_Error(
'rest_out_of_bounds',
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
sprintf(
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
__( '%1$s must be between %2$d (inclusive) and %3$d (exclusive)' ),
$param,
$args['minimum'],
@ -2501,8 +2501,8 @@ function rest_validate_number_value_from_schema( $value, $args, $param ) {
if ( $value > $args['maximum'] || $value < $args['minimum'] ) {
return new WP_Error(
'rest_out_of_bounds',
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
sprintf(
/* translators: 1: Parameter, 2: Minimum number, 3: Maximum number. */
__( '%1$s must be between %2$d (inclusive) and %3$d (inclusive)' ),
$param,
$args['minimum'],
@ -2539,8 +2539,8 @@ function rest_validate_string_value_from_schema( $value, $args, $param ) {
if ( isset( $args['minLength'] ) && mb_strlen( $value ) < $args['minLength'] ) {
return new WP_Error(
'rest_too_short',
/* translators: 1: Parameter, 2: Number of characters. */
sprintf(
/* translators: 1: Parameter, 2: Number of characters. */
_n(
'%1$s must be at least %2$s character long.',
'%1$s must be at least %2$s characters long.',
@ -2555,8 +2555,8 @@ function rest_validate_string_value_from_schema( $value, $args, $param ) {
if ( isset( $args['maxLength'] ) && mb_strlen( $value ) > $args['maxLength'] ) {
return new WP_Error(
'rest_too_long',
/* translators: 1: Parameter, 2: Number of characters. */
sprintf(
/* translators: 1: Parameter, 2: Number of characters. */
_n(
'%1$s must be at most %2$s character long.',
'%1$s must be at most %2$s characters long.',

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7.1-alpha-50649';
$wp_version = '5.7.1-alpha-50655';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -287,8 +287,8 @@ function login_footer( $input_id = '' ) {
$html_link = sprintf(
'<a href="%s">%s</a>',
esc_url( home_url( '/' ) ),
/* translators: %s: Site title. */
sprintf(
/* translators: %s: Site title. */
_x( '&larr; Go to %s', 'site' ),
get_bloginfo( 'title', 'display' )
)