Changeset 45932 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r45926 r45932 61 61 } 62 62 63 /* translators: %s: number of attachments*/63 /* translators: %s: Number of attachments. */ 64 64 $tabs['gallery'] = sprintf( __( 'Gallery (%s)' ), "<span id='attachments-count'>$attachments</span>" ); 65 65 … … 324 324 325 325 if ( ! empty( $meta['album'] ) && ! empty( $meta['artist'] ) ) { 326 /* translators: 1: audio track title, 2: album title, 3: artist name*/326 /* translators: 1: Audio track title, 2: Album title, 3: Artist name. */ 327 327 $content .= sprintf( __( '"%1$s" from %2$s by %3$s.' ), $title, $meta['album'], $meta['artist'] ); 328 328 } elseif ( ! empty( $meta['album'] ) ) { 329 /* translators: 1: audio track title, 2: album title*/329 /* translators: 1: Audio track title, 2: Album title. */ 330 330 $content .= sprintf( __( '"%1$s" from %2$s.' ), $title, $meta['album'] ); 331 331 } elseif ( ! empty( $meta['artist'] ) ) { 332 /* translators: 1: audio track title, 2: artist name*/332 /* translators: 1: Audio track title, 2: Artist name. */ 333 333 $content .= sprintf( __( '"%1$s" by %2$s.' ), $title, $meta['artist'] ); 334 334 } else { 335 /* translators: %s: audio track title*/335 /* translators: %s: Audio track title. */ 336 336 $content .= sprintf( __( '"%s".' ), $title ); 337 337 } … … 339 339 340 340 if ( ! empty( $meta['artist'] ) ) { 341 /* translators: 1: audio album title, 2: artist name*/341 /* translators: 1: Audio album title, 2: Artist name. */ 342 342 $content .= sprintf( __( '%1$s by %2$s.' ), $meta['album'], $meta['artist'] ); 343 343 } else { … … 351 351 352 352 if ( ! empty( $meta['year'] ) ) { 353 /* translators: Audio file track information. %d: Year of audio track release */353 /* translators: Audio file track information. %d: Year of audio track release. */ 354 354 $content .= ' ' . sprintf( __( 'Released: %d.' ), $meta['year'] ); 355 355 } … … 358 358 $track_number = explode( '/', $meta['track_number'] ); 359 359 if ( isset( $track_number[1] ) ) { 360 /* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks */360 /* translators: Audio file track information. 1: Audio track number, 2: Total audio tracks. */ 361 361 $content .= ' ' . sprintf( __( 'Track %1$s of %2$s.' ), number_format_i18n( $track_number[0] ), number_format_i18n( $track_number[1] ) ); 362 362 } else { 363 /* translators: Audio file track information. %s: Audio track number */363 /* translators: Audio file track information. %s: Audio track number. */ 364 364 $content .= ' ' . sprintf( __( 'Track %s.' ), number_format_i18n( $track_number[0] ) ); 365 365 } … … 367 367 368 368 if ( ! empty( $meta['genre'] ) ) { 369 /* translators: Audio file genre information. %s: Audio genre name */369 /* translators: Audio file genre information. %s: Audio genre name. */ 370 370 $content .= ' ' . sprintf( __( 'Genre: %s.' ), $meta['genre'] ); 371 371 } … … 1604 1604 <tr><td style='display:none' colspan='2' class='image-editor' id='image-editor-$post->ID'></td></tr>\n 1605 1605 <tr><td colspan='2'><p class='media-types media-types-required-info'>" . 1606 /* translators: %s: an asterisk symbol (*)*/1606 /* translators: %s: Asterisk symbol (*). */ 1607 1607 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 1608 1608 "</p></td></tr>\n"; … … 1626 1626 $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a> 1627 1627 <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" . 1628 /* translators: %s: file name*/1628 /* translators: %s: File name. */ 1629 1629 '<p>' . sprintf( __( 'You are about to delete %s.' ), '<strong>' . $filename . '</strong>' ) . "</p> 1630 1630 <a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a> … … 1911 1911 if ( $item ) { 1912 1912 $item = '<p class="media-types media-types-required-info">' . 1913 /* translators: %s: an asterisk symbol (*)*/1913 /* translators: %s: Asterisk symbol (*). */ 1914 1914 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 1915 1915 '</p>' . … … 2143 2143 <p class="max-upload-size"> 2144 2144 <?php 2145 /* translators: %s: maximum allowed file size*/2145 /* translators: %s: Maximum allowed file size. */ 2146 2146 printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format( $max_upload_size ) ) ); 2147 2147 ?> … … 2792 2792 <p class="media-types"><label><input type="radio" name="media_type" value="image" id="image-only"' . checked( 'image-only', $view, false ) . ' /> ' . __( 'Image' ) . '</label> <label><input type="radio" name="media_type" value="generic" id="not-image"' . checked( 'not-image', $view, false ) . ' /> ' . __( 'Audio, Video, or Other File' ) . '</label></p> 2793 2793 <p class="media-types media-types-required-info">' . 2794 /* translators: %s: an asterisk symbol (*)*/2794 /* translators: %s: Asterisk symbol (*). */ 2795 2795 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 2796 2796 '</p> … … 2883 2883 <?php 2884 2884 printf( 2885 /* translators: 1: URL to browser uploader, 2: additional link attributes*/2885 /* translators: 1: URL to browser uploader, 2: Additional link attributes. */ 2886 2886 __( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ), 2887 2887 $browser_uploader, … … 2931 2931 <input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> /> 2932 2932 <?php 2933 /* translators: 1: link start tag, 2: link end tag, 3: width, 4: height*/2933 /* translators: 1: Link start tag, 2: Link end tag, 3: Width, 4: Height. */ 2934 2934 printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) ); 2935 2935 ?> … … 2945 2945 function multisite_over_quota_message() { 2946 2946 echo '<p>' . sprintf( 2947 /* translators: %s: allowed space allocation*/2947 /* translators: %s: Allowed space allocation. */ 2948 2948 __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), 2949 2949 size_format( get_space_allowed() * MB_IN_BYTES ) … … 3068 3068 <?php 3069 3069 printf( 3070 /* translators: 1: link to tutorial, 2: additional link attributes, 3: accessibility text*/3070 /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */ 3071 3071 __( '<a href="%1$s" %2$s>Describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ), 3072 3072 esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ), … … 3074 3074 sprintf( 3075 3075 '<span class="screen-reader-text"> %s</span>', 3076 /* translators: accessibility text*/3076 /* translators: Accessibility text. */ 3077 3077 __( '(opens in a new tab)' ) 3078 3078 )
Note: See TracChangeset
for help on using the changeset viewer.