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-posts-controller.php

    r45811 r45932  
    12201220        }
    12211221
    1222         /* translators: 1: parameter, 2: list of valid values */
     1222        /* translators: 1: Parameter, 2: List of valid values. */
    12231223        return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not one of %2$s.' ), 'template', implode( ', ', array_keys( $allowed_templates ) ) ) );
    12241224    }
     
    22172217            $base                          = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
    22182218            $schema['properties'][ $base ] = array(
    2219                 /* translators: %s: taxonomy name */
     2219                /* translators: %s: Taxonomy name. */
    22202220                'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
    22212221                'type'        => 'array',
     
    23202320            $tax_base = ! empty( $tax->rest_base ) ? $tax->rest_base : $tax->name;
    23212321
    2322             /* translators: %s: taxonomy name */
     2322            /* translators: %s: Taxonomy name. */
    23232323            $assign_title = sprintf( __( 'The current user can assign terms in the %s taxonomy.' ), $tax->name );
    2324             /* translators: %s: taxonomy name */
     2324            /* translators: %s: Taxonomy name. */
    23252325            $create_title = sprintf( __( 'The current user can create terms in the %s taxonomy.' ), $tax->name );
    23262326
     
    25122512
    25132513            $query_params[ $base ] = array(
    2514                 /* translators: %s: taxonomy name */
     2514                /* translators: %s: Taxonomy name. */
    25152515                'description' => sprintf( __( 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ),
    25162516                'type'        => 'array',
     
    25222522
    25232523            $query_params[ $base . '_exclude' ] = array(
    2524                 /* translators: %s: taxonomy name */
     2524                /* translators: %s: Taxonomy name. */
    25252525                'description' => sprintf( __( 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ),
    25262526                'type'        => 'array',
Note: See TracChangeset for help on using the changeset viewer.