Make WordPress Core

Changeset 58240


Ignore:
Timestamp:
05/29/2024 10:20:43 PM (6 months ago)
Author:
joedolson
Message:

Media: Accessibility: Make alt text information URL translatable.

Allow translators to replace the W3C WAI decision tree link used to provide information about writing alt text. Improves accessibility for non-English speaking content authors.

Props tmatsuur, joedolson, oglekler, SergeyBiryukov, myhro, sabernhardt.
Fixes #60975.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r58217 r58240  
    32423242            /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    32433243            __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    3244             esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
     3244            /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
     3245            esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
    32453246            'target="_blank" rel="noopener"',
    32463247            sprintf(
  • trunk/src/wp-includes/media-template.php

    r58217 r58240  
    160160        /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    161161        __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    162         esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
     162        /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
     163        esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
    163164        'target="_blank" rel="noopener"',
    164165        sprintf(
Note: See TracChangeset for help on using the changeset viewer.