WordPress.org

Make WordPress Core

Ticket #44360: 44360.wp-includes_customize.patch

File 44360.wp-includes_customize.patch, 3.4 KB (added by marcomartins, 18 months ago)

Fix translators comments in wp-includes/customize folder

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

    From c542de41db76b900b61cbd087271d88f2ffed8a7 Mon Sep 17 00:00:00 2001
    From: Marco Martins <marcomartins@fimdalinha.com>
    Date: Thu, 14 Jun 2018 16:00:34 +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..b08b382 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 is the 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..859971e 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 is the 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..0316ec6 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 is the "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                                                );