Make WordPress Core


Ignore:
Timestamp:
11/15/2016 04:27:49 AM (10 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/fields/class-wp-rest-meta-fields.php

    r39222 r39238  
    177177            return new WP_Error(
    178178                'rest_cannot_delete',
    179                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     179                sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ),
    180180                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    181181            );
     
    211211            return new WP_Error(
    212212                'rest_cannot_update',
    213                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     213                sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ),
    214214                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    215215            );
     
    281281            return new WP_Error(
    282282                'rest_cannot_update',
    283                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     283                sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ),
    284284                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    285285            );
Note: See TracChangeset for help on using the changeset viewer.