Make WordPress Core


Ignore:
Timestamp:
08/30/2018 12:35:08 PM (7 years 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

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