Make WordPress Core


Ignore:
Timestamp:
02/07/2021 12:42:06 PM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Adjust some newly introduced strings to remove unnecessary numbered placeholders for consistency.

Follow-up to [42827].

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-pattern-categories-registry.php

    r49311 r50234  
    6161    public function unregister( $category_name ) {
    6262        if ( ! $this->is_registered( $category_name ) ) {
    63             /* translators: 1: Block pattern name. */
    64             $message = sprintf( __( 'Block pattern category "%1$s" not found.' ), $category_name );
     63            /* translators: %s: Block pattern name. */
     64            $message = sprintf( __( 'Block pattern category "%s" not found.' ), $category_name );
    6565            _doing_it_wrong( __METHOD__, $message, '5.5.0' );
    6666            return false;
Note: See TracChangeset for help on using the changeset viewer.