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/media.php

    r42759 r42827  
    349349
    350350        if ( ! empty( $meta['year'] ) ) {
    351             /* translators: Audio file track information. 1: Year of audio track release */
     351            /* translators: Audio file track information. %d: Year of audio track release */
    352352            $content .= ' ' . sprintf( __( 'Released: %d.' ), $meta['year'] );
    353353        }
     
    359359                $content .= ' ' . sprintf( __( 'Track %1$s of %2$s.' ), number_format_i18n( $track_number[0] ), number_format_i18n( $track_number[1] ) );
    360360            } else {
    361                 /* translators: Audio file track information. 1: Audio track number */
    362                 $content .= ' ' . sprintf( __( 'Track %1$s.' ), number_format_i18n( $track_number[0] ) );
     361                /* translators: Audio file track information. %s: Audio track number */
     362                $content .= ' ' . sprintf( __( 'Track %s.' ), number_format_i18n( $track_number[0] ) );
    363363            }
    364364        }
    365365
    366366        if ( ! empty( $meta['genre'] ) ) {
    367             /* translators: Audio file genre information. 1: Audio genre name */
     367            /* translators: Audio file genre information. %s: Audio genre name */
    368368            $content .= ' ' . sprintf( __( 'Genre: %s.' ), $meta['genre'] );
    369369        }
Note: See TracChangeset for help on using the changeset viewer.