Make WordPress Core


Ignore:
Timestamp:
09/19/2022 10:13:21 PM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <code> tags from translatable strings in WP_List_Table::get_views_links().

To simplify the strings and exclude any parts that don't require translation, the <code> tags wrapping a placeholder can be moved out of the string and added to the placeholder value.

Follow-up to [54215].

See #42066.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r54215 r54222  
    15341534                sprintf(
    15351535                    /* translators: %s: The $link_data argument. */
    1536                     __( 'The <code>%s</code> argument must be an array.' ),
    1537                     '$link_data'
     1536                    __( 'The %s argument must be an array.' ),
     1537                    '<code>$link_data</code>'
    15381538                ),
    15391539                '6.1.0'
     
    15501550                    sprintf(
    15511551                        /* translators: %1$s: The argument name. %2$s: The view name. */
    1552                         __( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
    1553                         'url',
    1554                         esc_html( $view )
     1552                        __( 'The %1$s argument must be a non-empty string for %2$s.' ),
     1553                        '<code>url</code>',
     1554                        '<code>' . esc_html( $view ) . '</code>'
    15551555                    ),
    15561556                    '6.1.0'
     
    15651565                    sprintf(
    15661566                        /* translators: %1$s: The argument name. %2$s: The view name. */
    1567                         __( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
    1568                         'label',
    1569                         esc_html( $view )
     1567                        __( 'The %1$s argument must be a non-empty string for %2$s.' ),
     1568                        '<code>label</code>',
     1569                        '<code>' . esc_html( $view ) . '</code>'
    15701570                    ),
    15711571                    '6.1.0'
Note: See TracChangeset for help on using the changeset viewer.