Make WordPress Core


Ignore:
Timestamp:
02/07/2023 05:08:26 PM (16 months ago)
Author:
SergeyBiryukov
Message:

I18N: Mark screen reader strings as such with translator comments.

This aims to provide better context for translators and make it easier to determine that some strings contain hidden accessibility text and are not displayed in the UI.

Props kebbet, mercime, pavelevap, ocean90, swissspidy, Chouby, jipmoors, afercia, desrosj, costdev, audrasjb, SergeyBiryukov.
Fixes #29748.

File:
1 edited

Legend:

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

    r52362 r55276  
    246246            <span class="screen-reader-text edit">
    247247                <?php
    248                 /* translators: %s: Widget title. */
     248                /* translators: Hidden accessibility text. %s: Widget title. */
    249249                printf( __( 'Edit widget: %s' ), $widget_title );
    250250                ?>
     
    252252            <span class="screen-reader-text add">
    253253                <?php
    254                 /* translators: %s: Widget title. */
     254                /* translators: Hidden accessibility text. %s: Widget title. */
    255255                printf( __( 'Add widget: %s' ), $widget_title );
    256256                ?>
Note: See TracChangeset for help on using the changeset viewer.