WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (4 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.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r42676 r42827  
    22032203            'convert_to_screen(), add_meta_box()',
    22042204            sprintf(
    2205                 /* translators: 1: wp-admin/includes/template.php 2: add_meta_box() 3: add_meta_boxes */
     2205                /* translators: 1: wp-admin/includes/template.php, 2: add_meta_box(), 3: add_meta_boxes */
    22062206                __( 'Likely direct inclusion of %1$s in order to use %2$s. This is very wrong. Hook the %2$s call into the %3$s action instead.' ),
    22072207                '<code>wp-admin/includes/template.php</code>',
     
    22862286
    22872287    if ( $r['number'] ) {
    2288         /* translators: 1: The rating, 2: The number of ratings */
     2288        /* translators: 1: the rating, 2: the number of ratings */
    22892289        $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
    22902290        $title  = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $r['number'] ) );
    22912291    } else {
    2292         /* translators: 1: The rating */
     2292        /* translators: %s: the rating */
    22932293        $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
    22942294    }
Note: See TracChangeset for help on using the changeset viewer.