Make WordPress Core


Ignore:
Timestamp:
09/29/2017 11:41:06 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use a consistent pattern for translator comments for placeholders in Customizer and widget strings.

Props danieltj, Rahmohn.
Fixes #41974.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-media-video.php

    r41198 r41640  
    3434            'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
    3535            'missing_attachment' => sprintf(
    36                 /* translators: placeholder is URL to media library */
     36                /* translators: %s: URL to media library */
    3737                __( 'We can&#8217;t find that video. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
    3838                esc_url( admin_url( 'upload.php' ) )
    3939            ),
    40             /* translators: %d is widget count */
     40            /* translators: %d: widget count */
    4141            'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ),
    4242            'media_library_state_single' => __( 'Video Widget' ),
    43             /* translators: placeholder is a list of valid video file extensions */
    44             'unsupported_file_type' => sprintf( __( 'Sorry, we can&#8217;t display the video file type selected. Please select a supported video file (%1$s) or stream (YouTube or Vimeo) instead.' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),
     43            /* translators: %s: a list of valid video file extensions */
     44            'unsupported_file_type' => sprintf( __( 'Sorry, we can&#8217;t display the video file type selected. Please select a supported video file (%s) or stream (YouTube or Vimeo) instead.' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),
    4545        ) );
    4646    }
     
    8888                'default' => '',
    8989                'format' => 'uri',
    90                 /* translators: placeholder is video extension */
     90                /* translators: %s: video extension */
    9191                'description' => sprintf( __( 'URL to the %s video source file' ), $video_extension ),
    9292            );
Note: See TracChangeset for help on using the changeset viewer.