Make WordPress Core

Ticket #41974: 41974.2.diff

File 41974.2.diff, 8.2 KB (added by danieltj, 4 years ago)

Changed all instances of 'translators: placeholder'

  • wp-includes/class-wp-customize-widgets.php

    diff --git wp-includes/class-wp-customize-widgets.php wp-includes/class-wp-customize-widgets.php
    index a605b90..5c78e2b 100644
    final class WP_Customize_Widgets { 
    741741                 */
    742742                $some_non_rendered_areas_messages = array();
    743743                $some_non_rendered_areas_messages[1] = html_entity_decode(
    744                         /* translators: placeholder is the number of other widget areas registered but not rendered */
     744                        /* translators: (1) is the number of other widget areas registered but not rendered */
    745745                        __( 'Your theme has 1 other widget area, but this particular page doesn’t display it.' ),
    746746                        ENT_QUOTES,
    747747                        get_bloginfo( 'charset' )
    final class WP_Customize_Widgets { 
    749749                $registered_sidebar_count = count( $wp_registered_sidebars );
    750750                for ( $non_rendered_count = 2; $non_rendered_count < $registered_sidebar_count; $non_rendered_count++ ) {
    751751                        $some_non_rendered_areas_messages[ $non_rendered_count ] = html_entity_decode( sprintf(
    752                                 /* translators: placeholder is the number of other widget areas registered but not rendered */
     752                                /* translators: %s is the number of other widget areas registered but not rendered */
    753753                                _n(
    754754                                        'Your theme has %s other widget area, but this particular page doesn&#8217;t display it.',
    755755                                        'Your theme has %s other widget areas, but this particular page doesn&#8217;t display them.',
    final class WP_Customize_Widgets { 
    761761
    762762                if ( 1 === $registered_sidebar_count ) {
    763763                        $no_areas_shown_message = html_entity_decode( sprintf(
    764                                 /* translators: placeholder is the total number of widget areas registered */
     764                                /* translators: (1) is the total number of widget areas registered */
    765765                                __( 'Your theme has 1 widget area, but this particular page doesn&#8217;t display it.' )
    766766                        ), ENT_QUOTES, get_bloginfo( 'charset' ) );
    767767                } else {
    768768                        $no_areas_shown_message = html_entity_decode( sprintf(
    769                                 /* translators: placeholder is the total number of widget areas registered */
     769                                /* translators: %s is the total number of widget areas registered */
    770770                                _n(
    771771                                        'Your theme has %s widget area, but this particular page doesn&#8217;t display it.',
    772772                                        'Your theme has %s widget areas, but this particular page doesn&#8217;t display them.',
    final class WP_Customize_Widgets { 
    794794                                'reorderModeOn'    => __( 'Reorder mode enabled' ),
    795795                                'reorderModeOff'   => __( 'Reorder mode closed' ),
    796796                                'reorderLabelOn'   => esc_attr__( 'Reorder widgets' ),
    797                                 /* translators: placeholder is the count for the number of widgets found */
     797                                /* translators: %d is the count for the number of widgets found */
    798798                                'widgetsFound'     => __( 'Number of widgets found: %d' ),
    799799                                'noWidgetsFound'   => __( 'No widgets found.' ),
    800800                        ),
  • wp-includes/widgets/class-wp-widget-media-audio.php

    diff --git wp-includes/widgets/class-wp-widget-media-audio.php wp-includes/widgets/class-wp-widget-media-audio.php
    index c6f8c53..471b6fe 100644
    class WP_Widget_Media_Audio extends WP_Widget_Media { 
    3434                        'replace_media' => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
    3535                        'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
    3636                        'missing_attachment' => sprintf(
    37                                 /* translators: placeholder is URL to media library */
     37                                /* translators: %s is URL to media library */
    3838                                __( 'We can&#8217;t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
    3939                                esc_url( admin_url( 'upload.php' ) )
    4040                        ),
    class WP_Widget_Media_Audio extends WP_Widget_Media { 
    7979                                'type' => 'string',
    8080                                'default' => '',
    8181                                'format' => 'uri',
    82                                 /* translators: placeholder is audio extension */
     82                                /* translators: %s is audio extension */
    8383                                'description' => sprintf( __( 'URL to the %s audio source file' ), $audio_extension ),
    8484                        );
    8585                }
  • wp-includes/widgets/class-wp-widget-media-image.php

    diff --git wp-includes/widgets/class-wp-widget-media-image.php wp-includes/widgets/class-wp-widget-media-image.php
    index 22e891f..44b9767 100644
    class WP_Widget_Media_Image extends WP_Widget_Media { 
    3434                        'replace_media' => _x( 'Replace Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ),
    3535                        'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ),
    3636                        'missing_attachment' => sprintf(
    37                                 /* translators: placeholder is URL to media library */
     37                                /* translators: %s is URL to media library */
    3838                                __( 'We can&#8217;t find that image. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
    3939                                esc_url( admin_url( 'upload.php' ) )
    4040                        ),
    class WP_Widget_Media_Image extends WP_Widget_Media { 
    328328                                <img class="attachment-thumb" src="{{ data.url }}" draggable="false" alt="{{ data.alt }}" <# if ( ! data.alt && data.currentFilename ) { #> aria-describedby="{{ describedById }}" <# } #> />
    329329                                <# if ( ! data.alt && data.currentFilename ) { #>
    330330                                        <p class="hidden" id="{{ describedById }}"><?php
    331                                                 /* translators: placeholder is image filename */
     331                                                /* translators: %s is image filename */
    332332                                                echo sprintf( __( 'Current image: %s' ), '{{ data.currentFilename }}' );
    333333                                        ?></p>
    334334                                <# } #>
  • wp-includes/widgets/class-wp-widget-media-video.php

    diff --git wp-includes/widgets/class-wp-widget-media-video.php wp-includes/widgets/class-wp-widget-media-video.php
    index f05928f..0765aea 100644
    class WP_Widget_Media_Video extends WP_Widget_Media { 
    3434                        'replace_media' => _x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
    3535                        'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
    3636                        'missing_attachment' => sprintf(
    37                                 /* translators: placeholder is URL to media library */
     37                                /* translators: %s is URL to media library */
    3838                                __( 'We can&#8217;t find that video. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
    3939                                esc_url( admin_url( 'upload.php' ) )
    4040                        ),
    4141                        /* translators: %d is widget count */
    4242                        'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ),
    4343                        'media_library_state_single' => __( 'Video Widget' ),
    44                         /* translators: placeholder is a list of valid video file extensions */
     44                        /* translators: %1$s is a list of valid video file extensions */
    4545                        '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>' ),
    4646                ) );
    4747        }
    class WP_Widget_Media_Video extends WP_Widget_Media { 
    8989                                'type' => 'string',
    9090                                'default' => '',
    9191                                'format' => 'uri',
    92                                 /* translators: placeholder is video extension */
     92                                /* translators: %s is video extension */
    9393                                'description' => sprintf( __( 'URL to the %s video source file' ), $video_extension ),
    9494                        );
    9595                }
  • wp-includes/widgets/class-wp-widget-media.php

    diff --git wp-includes/widgets/class-wp-widget-media.php wp-includes/widgets/class-wp-widget-media.php
    index 10f92ab..af9b242 100644
    abstract class WP_Widget_Media extends WP_Widget { 
    7070                        'edit_media' => _x( 'Edit Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ),
    7171                        'add_to_widget' => __( 'Add to Widget' ),
    7272                        'missing_attachment' => sprintf(
    73                                 /* translators: placeholder is URL to media library */
     73                                /* translators: %s is URL to media library */
    7474                                __( 'We can&#8217;t find that file. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
    7575                                esc_url( admin_url( 'upload.php' ) )
    7676                        ),