Make WordPress Core


Ignore:
Timestamp:
05/29/2024 10:20:43 PM (2 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.