WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (4 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

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

    r38949 r39326  
    314314                $content .= sprintf( __( '"%1$s" by %2$s.' ), $title, $meta['artist'] );
    315315            } else {
     316                /* translators: 1: audio track title */
    316317                $content .= sprintf( __( '"%s".' ), $title );
    317318            }
     
    332333        }
    333334
    334         if ( ! empty( $meta['year'] ) )
     335        if ( ! empty( $meta['year'] ) ) {
     336            /* translators: Audio file track information. 1: Year of audio track release */
    335337            $content .= ' ' . sprintf( __( 'Released: %d.' ), $meta['year'] );
     338        }
    336339
    337340        if ( ! empty( $meta['track_number'] ) ) {
    338341            $track_number = explode( '/', $meta['track_number'] );
    339             if ( isset( $track_number[1] ) )
     342            if ( isset( $track_number[1] ) ) {
     343                /* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks */
    340344                $content .= ' ' . sprintf( __( 'Track %1$s of %2$s.' ), number_format_i18n( $track_number[0] ), number_format_i18n( $track_number[1] ) );
    341             else
     345            } else {
     346                /* translators: Audio file track information. 1: Audio track number */
    342347                $content .= ' ' . sprintf( __( 'Track %1$s.' ), number_format_i18n( $track_number[0] ) );
    343         }
    344 
    345         if ( ! empty( $meta['genre'] ) )
     348            }
     349        }
     350
     351        if ( ! empty( $meta['genre'] ) ) {
     352            /* translators: Audio file genre information. 1: Audio genre name */
    346353            $content .= ' ' . sprintf( __( 'Genre: %s.' ), $meta['genre'] );
     354        }
    347355
    348356    // Use image exif/iptc data for title and caption defaults if possible.
Note: See TracChangeset for help on using the changeset viewer.