WordPress.org

Make WordPress Core

Changeset 43596


Ignore:
Timestamp:
08/30/2018 12:35:08 PM (13 months ago)
Author:
jrf
Message:

I18n: Improve translators comments [2].

  • Add missing translators comments.
  • Fix placement of some translators comments. Translators comments should be on the line directly above the line containing the translation function call for optimal compatibility with various .pot file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translators comments.

Patch 44360.wp-includes_customize.3.patch of the series.

Props marcomartins, mihaiiceyro, michielatyoast
See #44360

Location:
trunk/src/wp-includes/customize
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r43571 r43596  
    183183                    _e( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );
    184184                } elseif ( $width && $height ) {
    185                     /* translators: %s: header size in pixels */
    186185                    printf(
     186                        /* translators: %s: header size in pixels */
    187187                        __( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
    188188                        sprintf( '<strong>%s &times; %s</strong>', $width, $height )
    189189                    );
    190190                } elseif ( $width ) {
    191                     /* translators: %s: header width in pixels */
    192191                    printf(
     192                        /* translators: %s: header width in pixels */
    193193                        __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    194194                        sprintf( '<strong>%s</strong>', $width )
    195195                    );
    196196                } else {
    197                     /* translators: %s: header height in pixels */
    198197                    printf(
     198                        /* translators: %s: header height in pixels */
    199199                        __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    200200                        sprintf( '<strong>%s</strong>', $height )
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php

    r43174 r43596  
    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>'
  • trunk/src/wp-includes/customize/class-wp-customize-themes-section.php

    r42447 r43596  
    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' ) )
Note: See TracChangeset for help on using the changeset viewer.