Make WordPress Core


Ignore:
Timestamp:
11/15/2016 04:27:49 AM (8 years ago)
Author:
rmccue
Message:

REST API: Add translator comments to text with placeholders.

Props dimadin.
Fixes #38791.

File:
1 edited

Legend:

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

    r39223 r39238  
    975975
    976976            if ( ! isset( $wp_roles->role_objects[ $role ] ) ) {
    977                 return new WP_Error( 'rest_user_invalid_role', sprintf( __( 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
     977                return new WP_Error( 'rest_user_invalid_role', sprintf( __( /* translators: %s: role key */ 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
    978978            }
    979979
     
    12071207            foreach ( $avatar_sizes as $size ) {
    12081208                $avatar_properties[ $size ] = array(
    1209                     'description' => sprintf( __( 'Avatar URL with image size of %d pixels.' ), $size ),
     1209                    'description' => sprintf( __( /* translators: %d: avatar image size in pixels */ 'Avatar URL with image size of %d pixels.' ), $size ),
    12101210                    'type'        => 'string',
    12111211                    'format'      => 'uri',
Note: See TracChangeset for help on using the changeset viewer.