WordPress.org

Make WordPress Core

Changeset 41591


Ignore:
Timestamp:
09/25/2017 10:26:26 AM (21 months ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for placeholders in WP_REST_Controller strings.

Props ramiy.
Fixes #41667.

File:
1 edited

Legend:

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

    r41587 r41591  
    3737     */
    3838    public function register_routes() {
     39        /* translators: %s: register_routes() */
    3940        _doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7' );
    4041    }
     
    4950     */
    5051    public function get_items_permissions_check( $request ) {
     52        /* translators: %s: method name */
    5153        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    5254    }
     
    6163     */
    6264    public function get_items( $request ) {
     65        /* translators: %s: method name */
    6366        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    6467    }
     
    7376     */
    7477    public function get_item_permissions_check( $request ) {
     78        /* translators: %s: method name */
    7579        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    7680    }
     
    8589     */
    8690    public function get_item( $request ) {
     91        /* translators: %s: method name */
    8792        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    8893    }
     
    97102     */
    98103    public function create_item_permissions_check( $request ) {
     104        /* translators: %s: method name */
    99105        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    100106    }
     
    109115     */
    110116    public function create_item( $request ) {
     117        /* translators: %s: method name */
    111118        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    112119    }
     
    121128     */
    122129    public function update_item_permissions_check( $request ) {
     130        /* translators: %s: method name */
    123131        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    124132    }
     
    133141     */
    134142    public function update_item( $request ) {
     143        /* translators: %s: method name */
    135144        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    136145    }
     
    145154     */
    146155    public function delete_item_permissions_check( $request ) {
     156        /* translators: %s: method name */
    147157        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    148158    }
     
    157167     */
    158168    public function delete_item( $request ) {
     169        /* translators: %s: method name */
    159170        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    160171    }
     
    169180     */
    170181    protected function prepare_item_for_database( $request ) {
     182        /* translators: %s: method name */
    171183        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    172184    }
     
    182194     */
    183195    public function prepare_item_for_response( $item, $request ) {
     196        /* translators: %s: method name */
    184197        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    185198    }
Note: See TracChangeset for help on using the changeset viewer.