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

    r39182 r39238  
    19341934            $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
    19351935            $schema['properties'][ $base ] = array(
    1936                 'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
     1936                'description' => sprintf( __( /* translators: %s: taxonomy name */ 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
    19371937                'type'        => 'array',
    19381938                'items'       => array(
     
    20892089
    20902090            $params[ $base ] = array(
    2091                 'description'       => sprintf( __( 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ),
     2091                'description'       => sprintf( __( /* translators: %s: taxonomy name */ 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ),
    20922092                'type'              => 'array',
    20932093                'items'             => array(
     
    20982098
    20992099            $params[ $base . '_exclude' ] = array(
    2100                 'description' => sprintf( __( 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ),
     2100                'description' => sprintf( __( /* translators: %s: taxonomy name */ 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ),
    21012101                'type'        => 'array',
    21022102                'items'       => array(
Note: See TracChangeset for help on using the changeset viewer.