Make WordPress Core

Ticket #40865: 40865.2.diff

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

Add instructions for situations when no cities have events

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

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 61f1c8f62b..64e1888719 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. */ ?>
    1173                                 <input id="community-events-location" class="regular-text" type="text" name="community-events-location" placeholder="<?php esc_attr_e( 'Cincinnati' ); ?>" />
     1172                                <?php /* translators: Replace with the name of a city related to your locale that shows events (test that it matches the expected location before including it). 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. */ ?>
     1173                                <input id="community-events-location" class="regular-text" type="text" name="community-events-location" placeholder="<?php echo esc_attr_x( 'Cincinnati', 'community events location input field placeholder' ); ?>" />
    11741174
    11751175                                <?php submit_button( __( 'Submit' ), 'secondary', 'community-events-submit', false ); ?>
    11761176
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index ff7d8bb855..9465091712 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, but test that they match the expected location before including them. Use endonyms (native locale names) whenever 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.