Make WordPress Core

Changeset 58284

Timestamp:
06/02/2024 09:05:51 PM (8 weeks ago)
Author:
audrasjb
Message:

I18n: Add more context to the overall use of none in translatable strings.

Because none doesn't convey the same meaning all the time.

Props tobifjellner, audrasjb, SergeyBiryukov, shailu25.
Fixes #50087.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r58129 r58284  
    13551355            </label>
    13561356            <label for="friendship">
    1357             <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
     1357            <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn' ); ?>
    13581358            </label>
    13591359        </fieldset></td>
     
    14061406            </label>
    14071407            <label for="geographical">
    1408             <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
     1408            <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn' ); ?>
    14091409            </label>
    14101410        </fieldset></td>
     
    14351435            </label>
    14361436            <label for="family">
    1437             <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
     1437            <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn' ); ?>
    14381438            </label>
    14391439        </fieldset></td>
  • trunk/src/wp-includes/deprecated.php

    r58234 r58284  
    706706    $show_option_none = '';
    707707    if ( $optionnone )
    708         $show_option_none = __('None');
     708    );
    709709
    710710    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
  • trunk/src/wp-includes/media-template.php

    r58240 r58284  
    841841                    </option>
    842842                    <option value="none" selected>
    843                         <?php esc_html_e( 'None' ); ?>
     843                        <?php esc_html_' ); ?>
    844844                    </option>
    845845                </select>
     
    868868            <# } else { #>
    869869                <option value="none" selected>
    870                     <?php esc_html_e( 'None' ); ?>
     870                    <?php esc_html_e' ); ?>
    871871                </option>
    872872                <option value="file">
     
    953953                </option>
    954954                <option value="none" <# if ( 'none' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
    955                     <?php esc_html_e( 'None' ); ?>
     955                    <?php esc_html_' ); ?>
    956956                </option>
    957957            </select>
     
    10971097                    </button>
    10981098                    <button class="button active" value="none">
    1099                         <?php esc_html_e( 'None' ); ?>
     1099                        <?php esc_html_' ); ?>
    11001100                    </button>
    11011101                </span>
     
    11141114                    </button>
    11151115                    <button class="button active" value="none">
    1116                         <?php esc_html_e( 'None' ); ?>
     1116                        <?php esc_html_' ); ?>
    11171117                    </button>
    11181118                </span>
     
    11611161                                </button>
    11621162                                <button class="button active" value="none">
    1163                                     <?php esc_html_e( 'None' ); ?>
     1163                                    <?php esc_html_' ); ?>
    11641164                                </button>
    11651165                            </span>
     
    12371237                            </option>
    12381238                            <option value="none">
    1239                                 <?php esc_html_e( 'None' ); ?>
     1239                                <?php esc_html_' ); ?>
    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 _e( 'None' ); ?></button>
     1359                            <button class="button active" value="none"><?php _e' ); ?></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 _e( 'None' ); ?></button>
     1458                            <button class="button active" value="none"><?php _e' ); ?></button>
    14591459                        </span>
    14601460                    </span>
Note: See TracChangeset for help on using the changeset viewer.