Make WordPress Core

Changeset 53308


Ignore:
Timestamp:
04/29/2022 05:01:22 AM (3 years ago)
Author:
peterwilsoncc
Message:

Bundled Themes: Note visually hidden text for translators.

Indicate the use of screen reader only text in translator comments.

Props sabernhardt.
Fixes #55591.

Location:
trunk/src/wp-content/themes
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/content-link.php

    r47122 r53308  
    2929            the_content(
    3030                sprintf(
    31                     /* translators: %s: Post title. */
     31                    /* translators: %s: Post title. Only visible to screen readers. */
    3232                    __( 'Continue reading %s', 'twentyfifteen' ),
    3333                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfifteen/content.php

    r47122 r53308  
    3131            the_content(
    3232                sprintf(
    33                     /* translators: %s: Post title. */
     33                    /* translators: %s: Post title. Only visible to screen readers. */
    3434                    __( 'Continue reading %s', 'twentyfifteen' ),
    3535                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r51967 r53308  
    129129        if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    130130            echo '<span class="comments-link">';
    131             /* translators: %s: Post title. */
     131            /* translators: %s: Post title. Only visible to screen readers. */
    132132            comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) );
    133133            echo '</span>';
     
    249249            '<a href="%1$s" class="more-link">%2$s</a>',
    250250            esc_url( get_permalink( get_the_ID() ) ),
    251             /* translators: %s: Post title. */
     251            /* translators: %s: Post title. Only visible to screen readers. */
    252252            sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
    253253        );
  • trunk/src/wp-content/themes/twentyfourteen/content-aside.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-audio.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-gallery.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-image.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-link.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-quote.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content-video.php

    r47550 r53308  
    4646            the_content(
    4747                sprintf(
    48                     /* translators: %s: Post title. */
     48                    /* translators: %s: Post title. Only visible to screen readers. */
    4949                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5050                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/content.php

    r47808 r53308  
    5555            the_content(
    5656                sprintf(
    57                     /* translators: %s: Post title. */
     57                    /* translators: %s: Post title. Only visible to screen readers. */
    5858                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    5959                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r51967 r53308  
    227227            '<a href="%1$s" class="more-link">%2$s</a>',
    228228            esc_url( get_permalink( get_the_ID() ) ),
    229             /* translators: %s: Post title. */
     229            /* translators: %s: Post title. Only visible to screen readers. */
    230230            sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
    231231        );
  • trunk/src/wp-content/themes/twentynineteen/functions.php

    r52929 r53308  
    236236        '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
    237237        esc_url( get_permalink( get_the_ID() ) ),
    238         /* translators: %s: Post title. */
     238        /* translators: %s: Post title. Only visible to screen readers. */
    239239        sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) )
    240240    );
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r52929 r53308  
    395395        '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
    396396        esc_url( get_permalink( get_the_ID() ) ),
    397         /* translators: %s: Post title. */
     397        /* translators: %s: Post title. Only visible to screen readers. */
    398398        sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), get_the_title( get_the_ID() ) )
    399399    );
  • trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php

    r52929 r53308  
    113113        edit_post_link(
    114114            sprintf(
    115                 /* translators: %s: Post title. */
     115                /* translators: %s: Post title. Only visible to screen readers. */
    116116                __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    117117                get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php

    r46827 r53308  
    4242                    the_content(
    4343                        sprintf(
    44                             /* translators: %s: Post title. */
     44                            /* translators: %s: Post title. Only visible to screen readers. */
    4545                            __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    4646                            get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php

    r48064 r53308  
    3939                    the_content(
    4040                        sprintf(
    41                             /* translators: %s: Post title. */
     41                            /* translators: %s: Post title. Only visible to screen readers. */
    4242                            __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    4343                            get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php

    r51553 r53308  
    8080            the_content(
    8181                sprintf(
    82                     /* translators: %s: Post title. */
     82                    /* translators: %s: Post title. Only visible to screen readers. */
    8383                    __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    8484                    get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php

    r51553 r53308  
    6767            the_content(
    6868                sprintf(
    69                     /* translators: %s: Post title. */
     69                    /* translators: %s: Post title. Only visible to screen readers. */
    7070                    __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    7171                    get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php

    r51553 r53308  
    5858            the_content(
    5959                sprintf(
    60                     /* translators: %s: Post title. */
     60                    /* translators: %s: Post title. Only visible to screen readers. */
    6161                    __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    6262                    get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php

    r51553 r53308  
    7979            the_content(
    8080                sprintf(
    81                     /* translators: %s: Post title. */
     81                    /* translators: %s: Post title. Only visible to screen readers. */
    8282                    __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    8383                    get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content.php

    r51553 r53308  
    5454        the_content(
    5555            sprintf(
    56                 /* translators: %s: Post title. */
     56                /* translators: %s: Post title. Only visible to screen readers. */
    5757                __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    5858                get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/image.php

    r52013 r53308  
    8585                        edit_post_link(
    8686                            sprintf(
    87                                 /* translators: %s: Post title. */
     87                                /* translators: %s: Post title. Only visible to screen readers. */
    8888                                __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    8989                                get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php

    r53236 r53308  
    5050        if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    5151            echo '<span class="comments-link">';
    52             /* translators: %s: Post title. */
     52            /* translators: %s: Post title. Only visible to screen readers. */
    5353            comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
    5454            echo '</span>';
     
    192192            '<a href="%1$s" class="more-link">%2$s</a>',
    193193            esc_url( get_permalink( get_the_ID() ) ),
    194             /* translators: %s: Post title. */
     194            /* translators: %s: Post title. Only visible to screen readers. */
    195195            sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ), get_the_title( get_the_ID() ) )
    196196        );
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content-page.php

    r45932 r53308  
    3636        edit_post_link(
    3737            sprintf(
    38                 /* translators: %s: Post title. */
     38                /* translators: %s: Post title. Only visible to screen readers. */
    3939                __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    4040                get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content-search.php

    r45932 r53308  
    2525                edit_post_link(
    2626                    sprintf(
    27                         /* translators: %s: Post title. */
     27                        /* translators: %s: Post title. Only visible to screen readers. */
    2828                        __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    2929                        get_the_title()
     
    4040            edit_post_link(
    4141                sprintf(
    42                     /* translators: %s: Post title. */
     42                    /* translators: %s: Post title. Only visible to screen readers. */
    4343                    __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    4444                    get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content-single.php

    r45932 r53308  
    4444            edit_post_link(
    4545                sprintf(
    46                     /* translators: %s: Post title. */
     46                    /* translators: %s: Post title. Only visible to screen readers. */
    4747                    __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    4848                    get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content.php

    r45932 r53308  
    2626            the_content(
    2727                sprintf(
    28                     /* translators: %s: Post title. */
     28                    /* translators: %s: Post title. Only visible to screen readers. */
    2929                    __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    3030                    get_the_title()
     
    5050            edit_post_link(
    5151                sprintf(
    52                     /* translators: %s: Post title. */
     52                    /* translators: %s: Post title. Only visible to screen readers. */
    5353                    __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    5454                    get_the_title()
  • trunk/src/wp-content/themes/twentythirteen/content-aside.php

    r45932 r53308  
    1414            the_content(
    1515                sprintf(
    16                     /* translators: %s: Post title. */
     16                    /* translators: %s: Post title. Only visible to screen readers. */
    1717                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    1818                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-audio.php

    r45932 r53308  
    2525            the_content(
    2626                sprintf(
    27                     /* translators: %s: Post title. */
     27                    /* translators: %s: Post title. Only visible to screen readers. */
    2828                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2929                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-chat.php

    r45932 r53308  
    2424            the_content(
    2525                sprintf(
    26                     /* translators: %s: Post title. */
     26                    /* translators: %s: Post title. Only visible to screen readers. */
    2727                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2828                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-gallery.php

    r45932 r53308  
    2525            the_content(
    2626                sprintf(
    27                     /* translators: %s: Post title. */
     27                    /* translators: %s: Post title. Only visible to screen readers. */
    2828                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2929                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-image.php

    r45932 r53308  
    2424            the_content(
    2525                sprintf(
    26                     /* translators: %s: Post title. */
     26                    /* translators: %s: Post title. Only visible to screen readers. */
    2727                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2828                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-link.php

    r45932 r53308  
    2525            the_content(
    2626                sprintf(
    27                     /* translators: %s: Post title. */
     27                    /* translators: %s: Post title. Only visible to screen readers. */
    2828                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2929                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-quote.php

    r45932 r53308  
    1414            the_content(
    1515                sprintf(
    16                     /* translators: %s: Post title. */
     16                    /* translators: %s: Post title. Only visible to screen readers. */
    1717                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    1818                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-status.php

    r45932 r53308  
    1414            the_content(
    1515                sprintf(
    16                     /* translators: %s: Post title. */
     16                    /* translators: %s: Post title. Only visible to screen readers. */
    1717                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    1818                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content-video.php

    r45932 r53308  
    2424            the_content(
    2525                sprintf(
    26                     /* translators: %s: Post title. */
     26                    /* translators: %s: Post title. Only visible to screen readers. */
    2727                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    2828                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/content.php

    r47122 r53308  
    4242            the_content(
    4343                sprintf(
    44                     /* translators: %s: Post title. */
     44                    /* translators: %s: Post title. Only visible to screen readers. */
    4545                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    4646                    the_title( '<span class="screen-reader-text">', '</span>', false )
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r53236 r53308  
    691691            '<a href="%1$s" class="more-link">%2$s</a>',
    692692            esc_url( get_permalink( get_the_ID() ) ),
    693             /* translators: %s: Post title. */
     693            /* translators: %s: Post title. Only visible to screen readers. */
    694694            sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
    695695        );
Note: See TracChangeset for help on using the changeset viewer.