Make WordPress Core

Ticket #44360: 44360.wp-includes_customize.3.patch

File 44360.wp-includes_customize.3.patch, 3.3 KB (added by marcomartins, 6 years ago)

Fix translators comments in wp-includes/customize folder

  • wp-includes/customize/class-wp-customize-header-image-control.php

    From 65bcc7c2e1181d11262b1cd058f69c7b2f4646f8 Mon Sep 17 00:00:00 2001
    From: Marco Martins <marcomartins@fimdalinha.com>
    Date: Thu, 14 Jun 2018 17:14:28 +0300
    Subject: [PATCH] 44360 - wp-includes/customize
    
    ---
     wp-includes/customize/class-wp-customize-header-image-control.php       | 2 +-
     wp-includes/customize/class-wp-customize-nav-menu-locations-control.php | 2 +-
     wp-includes/customize/class-wp-customize-themes-section.php             | 2 +-
     3 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/wp-includes/customize/class-wp-customize-header-image-control.php b/wp-includes/customize/class-wp-customize-header-image-control.php
    index 68262dd..aad247b 100644
    a b class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { 
    178178                                if ( current_theme_supports( 'custom-header', 'video' ) ) {
    179179                                        _e( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
    180180                                } elseif ( $width && $height ) {
    181                                         /* translators: %s: header size in pixels */
    182181                                        printf(
     182                                                /* translators: %s: header size in pixels */
    183183                                                __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    184184                                                sprintf( '<strong>%s &times; %s</strong>', $width, $height )
    185185                                        );
  • wp-includes/customize/class-wp-customize-nav-menu-locations-control.php

    diff --git a/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php b/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php
    index f6474f6..7102a9c 100644
    a b class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { 
    7474                                                                <?php echo $description; ?>
    7575                                                                <span class="theme-location-set">
    7676                                                                        <?php
    77                                                                         /* translators: %s: menu name */
    7877                                                                        printf(
     78                                                                                /* translators: %s: menu name */
    7979                                                                                _x( '(Current: %s)', 'menu location' ),
    8080                                                                                '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>'
    8181                                                                        );
  • wp-includes/customize/class-wp-customize-themes-section.php

    diff --git a/wp-includes/customize/class-wp-customize-themes-section.php b/wp-includes/customize/class-wp-customize-themes-section.php
    index 1af0b1a..b112552 100644
    a b class WP_Customize_Themes_Section extends WP_Customize_Section { 
    8787                                        <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    8888                                        <p class="no-themes-local">
    8989                                                <?php
    90                                                 /* translators: %s: "Search WordPress.org themes" button */
    9190                                                printf(
     91                                                        /* translators: %s: "Search WordPress.org themes" button text */
    9292                                                        __( 'No themes found. Try a different search, or %s.' ),
    9393                                                        sprintf( '<button type="button" class="button-link search-dotorg-themes">%s</button>', __( 'Search WordPress.org themes' ) )
    9494                                                );