Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r45926 r45932  
    160160                return new WP_Error(
    161161                    'rest_forbidden_param',
    162                     /* translators: %s: list of forbidden parameters */
     162                    /* translators: %s: List of forbidden parameters. */
    163163                    sprintf( __( 'Query parameter not permitted: %s' ), implode( ', ', $forbidden_params ) ),
    164164                    array( 'status' => rest_authorization_required_code() )
     
    431431            return new WP_Error(
    432432                'rest_comment_invalid_author',
    433                 /* translators: %s: request parameter */
     433                /* translators: %s: Request parameter. */
    434434                sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'author' ),
    435435                array( 'status' => rest_authorization_required_code() )
     
    441441                return new WP_Error(
    442442                    'rest_comment_invalid_author_ip',
    443                     /* translators: %s: request parameter */
     443                    /* translators: %s: Request parameter. */
    444444                    sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'author_ip' ),
    445445                    array( 'status' => rest_authorization_required_code() )
     
    451451            return new WP_Error(
    452452                'rest_comment_invalid_status',
    453                 /* translators: %s: request parameter */
     453                /* translators: %s: Request parameter. */
    454454                sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'status' ),
    455455                array( 'status' => rest_authorization_required_code() )
     
    13551355            foreach ( $avatar_sizes as $size ) {
    13561356                $avatar_properties[ $size ] = array(
    1357                     /* translators: %d: avatar image size in pixels */
     1357                    /* translators: %d: Avatar image size in pixels. */
    13581358                    'description' => sprintf( __( 'Avatar URL with image size of %d pixels.' ), $size ),
    13591359                    'type'        => 'string',
Note: See TracChangeset for help on using the changeset viewer.