Make WordPress Core

Ticket #40865: 40865.3.diff

File 40865.3.diff, 2.5 KB (added by iandunn, 7 years ago)

removes use of esc_attr_x(), tweaks language

  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 61f1c8f62b..25c46e54e0 100644
    function wp_print_community_events_markup() { 
    11691169                                <label for="community-events-location">
    11701170                                        <?php _e( 'City:' ); ?>
    11711171                                </label>
    1172                                 <?php /* translators: Replace with the name of a city in your locale that shows events. Use only the city name itself, without any region or country. Use the endonym instead of the English name. */ ?>
     1172                                <?php /* translators: Replace with a city related to your locale. Test that it matches the expected location and has upcoming events before including it. If no cities related to your locale have events, then use a city related to your locale that would be recognizable to most users. Use only the city name itself, without any region or country. Use the endonym (native locale name) instead of the English name if possible. */ ?>
    11731173                                <input id="community-events-location" class="regular-text" type="text" name="community-events-location" placeholder="<?php esc_attr_e( 'Cincinnati' ); ?>" />
    11741174
    11751175                                <?php submit_button( __( 'Submit' ), 'secondary', 'community-events-submit', false ); ?>
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index ff7d8bb855..c967a3a535 100644
    function wp_localize_community_events() { 
    10461046                         * It would be too cumbersome to include that in the instructions
    10471047                         * to the user, so it's left as an implication.
    10481048                         */
    1049                         /* translators: %s is the name of the city we couldn't locate. Replace the examples with cities in your locale, but test that they match the expected location before including them. Use endonyms (native locale names) whenever possible. */
     1049                        /* translators: %s is the name of the city we couldn't locate. Replace the examples with cities related to your locale. Test that they match the expected location and have upcoming events before including them. If no cities related to your locale have events, then use cities related to your locale that would be recognizable to most users. Use only the city name itself, without any region or country. Use the endonym (native locale name) instead of the English name if possible. */
    10501050                        'could_not_locate_city' => __( 'We couldn&#8217;t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),
    10511051
    10521052                        // This one is only used with wp.a11y.speak(), so it can/should be more brief.