Make WordPress Core

Changeset 54346


Ignore:
Timestamp:
09/28/2022 02:02:35 PM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move code out of a translatable string in register_rest_route().

To simplify the string and exclude any parts that don't require translation, $args can be moved out of the string and added as a placeholder.

Follow-up to [54339].

See #51986.

File:
1 edited

Legend:

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

    r54339 r54346  
    109109                __FUNCTION__,
    110110                sprintf(
    111                 /* translators: %s: The REST API route being registered. */
    112                     __( 'REST API $args should be an array of arrays. Non-array value detected for %s.' ),
     111                    /* translators: 1: $args, 2: The REST API route being registered. */
     112                    __( 'REST API %1$s should be an array of arrays. Non-array value detected for %2$s.' ),
     113                    '<code>$args</code>',
    113114                    '<code>' . $clean_namespace . '/' . trim( $route, '/' ) . '</code>'
    114115                ),
Note: See TracChangeset for help on using the changeset viewer.