Make WordPress Core


Ignore:
Timestamp:
07/21/2024 06:56:45 PM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Correctly output the None translatable strings.

Includes updating the context to match the pre-existing block editor translations.

Follow-up to [58284].

Props sabernhardt, Marius84.
Fixes #61714.

File:
1 edited

Legend:

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

    r58284 r58774  
    841841                                        </option>
    842842                                        <option value="none" selected>
    843                                                 <?php esc_html_x( 'None', 'Alignment' ); ?>
     843                                                <?php echo esc_html_x( 'None', 'Alignment option' ); ?>
    844844                                        </option>
    845845                                </select>
     
    868868                        <# } else { #>
    869869                                <option value="none" selected>
    870                                         <?php esc_html_x( 'None', 'Embedded player type' ); ?>
     870                                        <?php echo esc_html_x( 'None', 'Media item link option' ); ?>
    871871                                </option>
    872872                                <option value="file">
     
    953953                                </option>
    954954                                <option value="none" <# if ( 'none' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
    955                                         <?php esc_html_x( 'None', 'Media link target' ); ?>
     955                                        <?php echo esc_html_x( 'None', 'Media item link option' ); ?>
    956956                                </option>
    957957                        </select>
     
    10971097                                        </button>
    10981098                                        <button class="button active" value="none">
    1099                                                 <?php esc_html_x( 'None', 'Alignment' ); ?>
     1099                                                <?php echo esc_html_x( 'None', 'Alignment option' ); ?>
    11001100                                        </button>
    11011101                                </span>
     
    11141114                                        </button>
    11151115                                        <button class="button active" value="none">
    1116                                                 <?php esc_html_x( 'None', 'Media URL' ); ?>
     1116                                                <?php echo esc_html_x( 'None', 'Media item link option' ); ?>
    11171117                                        </button>
    11181118                                </span>
     
    11611161                                                                </button>
    11621162                                                                <button class="button active" value="none">
    1163                                                                         <?php esc_html_x( 'None', 'Alignment' ); ?>
     1163                                                                        <?php echo esc_html_x( 'None', 'Alignment option' ); ?>
    11641164                                                                </button>
    11651165                                                        </span>
     
    12371237                                                        </option>
    12381238                                                        <option value="none">
    1239                                                                 <?php esc_html_x( 'None', 'Media URL' ); ?>
     1239                                                                <?php echo esc_html_x( 'None', 'Media item link option' ); ?>
    12401240                                                        </option>
    12411241                                                </select>
     
    13571357                                                        <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
    13581358                                                        <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
    1359                                                         <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
     1359                                                        <button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
    13601360                                                </span>
    13611361                                        </span>
     
    14561456                                                        <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
    14571457                                                        <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
    1458                                                         <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
     1458                                                        <button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
    14591459                                                </span>
    14601460                                        </span>
Note: See TracChangeset for help on using the changeset viewer.