Make WordPress Core

Changeset 41639


Ignore:
Timestamp:
09/29/2017 11:09:13 AM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Improve i18n in help text for Custom HTML widget and Additional CSS section.

Fixes #42032.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r41626 r41639  
    46154615                $section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' );
    46164616                $section_description .= sprintf(
    4617                         ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
     4617                        ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span></a>',
    46184618                        esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
    46194619                        __( 'Learn more about CSS' ),
    … …  
    46334633                        $section_description .= '<p>';
    46344634                        $section_description .= sprintf(
    4635                                 /* translators: placeholder is link to user profile */
    4636                                 __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
    4637                                 sprintf(
    4638                                         ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
    4639                                         esc_url( get_edit_profile_url() ),
    4640                                         __( 'user profile' ),
     4635                                /* translators: 1: link to user profile, 2: additional link attributes, 3: accessibility text */
     4636                                __( 'The edit field automatically highlights code syntax. You can disable this in your <a href="%1$s" %2$s>user profile%3$s</a> to work in plain text mode.' ),
     4637                                esc_url( get_edit_profile_url() ),
     4638                                'class="external-link" target="_blank"',
     4639                                sprintf( '<span class="screen-reader-text"> %s</span>',
    46414640                                        /* translators: accessibility text */
    46424641                                        __( '(opens in a new window)' )
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r41586 r41639  
    258258                        $content .= '<p>';
    259259                        $content .= sprintf(
    260                                 /* translators: placeholder is link to user profile */
    261                                 __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
    262                                 sprintf(
    263                                         ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
    264                                         esc_url( get_edit_profile_url() ),
    265                                         __( 'user profile' ),
     260                                /* translators: 1: link to user profile, 2: additional link attributes, 3: accessibility text */
     261                                __( 'The edit field automatically highlights code syntax. You can disable this in your <a href="%1$s" %2$s>user profile%3$s</a> to work in plain text mode.' ),
     262                                esc_url( get_edit_profile_url() ),
     263                                'class="external-link" target="_blank"',
     264                                sprintf( '<span class="screen-reader-text"> %s</span>',
    266265                                        /* translators: accessibility text */
    267266                                        __( '(opens in a new window)' )
Note: See TracChangeset for help on using the changeset viewer.