Make WordPress Core

Ticket #40702: 40702-duplicate-translations.diff

File 40702-duplicate-translations.diff, 3.0 KB (added by dd32, 7 years ago)
  • src/wp-admin/includes/dashboard.php

    function wp_dashboard_events_news() { 
    11581158                                /* translators: accessibility text */
    11591159                                __( '(opens in a new window)' )
    11601160                        );
    11611161                ?>
    11621162        </p>
    11631163
    11641164        <?php
    11651165}
    11661166
    11671167/**
    11681168 * Prints the markup for the Community Events section of the Events and News Dashboard widget.
    11691169 *
    11701170 * @since 4.8.0
    11711171 */
    11721172function wp_print_community_events_markup() {
    1173         $script_data = wp_get_community_events_script_data();
    1174 
    11751173        ?>
    11761174
    11771175        <div class="community-events-errors notice notice-error inline hide-if-js">
    11781176                <p class="hide-if-js">
    11791177                        <?php _e( 'This widget requires JavaScript.'); ?>
    11801178                </p>
    11811179
    11821180                <p class="community-events-error-occurred" aria-hidden="true">
    1183                         <?php echo $script_data['l10n']['error_occurred_please_try_again']; ?>
     1181                        <?php _e( 'An error occured. Please try again.' ); ?>
    11841182                </p>
    11851183
    11861184                <p class="community-events-could-not-locate" aria-hidden="true"></p>
    11871185        </div>
    11881186
    11891187        <div class="community-events-loading hide-if-no-js">
    11901188                <?php _e( 'Loading&hellip;'); ?>
    11911189        </div>
    11921190
    11931191        <?php
    11941192        /*
    11951193         * Hide the main element when the page first loads, because the content
    11961194         * won't be ready until wp.communityEvents.renderEventsTemplate() has run.
    11971195         */
    11981196        ?>
    function wp_print_community_events_marku 
    12231221                        </form>
    12241222                </div>
    12251223
    12261224                <ul class="community-events-results activity-block last"></ul>
    12271225        </div>
    12281226
    12291227        <?php
    12301228}
    12311229
    12321230/**
    12331231 * Renders the events templates for the Event and News widget.
    12341232 *
    12351233 * @since 4.8.0
    12361234 */
    12371235function wp_print_community_events_templates() {
    1238         $script_data = wp_get_community_events_script_data();
    1239 
    12401236        ?>
    12411237
    12421238        <script id="tmpl-community-events-attend-event-near" type="text/template">
    12431239                <?php printf(
    12441240                        /* translators: %s is a placeholder for the name of a city. */
    12451241                        __( 'Attend an upcoming event near %s.' ),
    12461242                        '<strong>{{ data.location }}</strong>'
    12471243                ); ?>
    12481244        </script>
    12491245
    12501246        <script id="tmpl-community-events-could-not-locate" type="text/template">
    12511247                <?php printf(
    1252                         $script_data['l10n']['could_not_locate_city'],
     1248                        /* 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. */
     1249                        __( "We couldn't locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland." ),
    12531250                        '<em>{{data.unknownCity}}</em>'
    12541251                ); ?>
    12551252        </script>
    12561253
    12571254        <script id="tmpl-community-events-event-list" type="text/template">
    12581255                <# _.each( data.events, function( event ) { #>
    12591256                        <li class="event event-{{ event.type }} wp-clearfix">
    12601257                                <div class="event-info">
    12611258                                        <div class="dashicons event-icon" aria-hidden="true"></div>
    12621259                                        <div class="event-info-inner">
    12631260                                                <a class="event-title" href="{{ event.url }}">{{ event.title }}</a>
    12641261                                                <span class="event-city">{{ event.location.location }}</span>
    12651262                                        </div>
    12661263                                </div>
    12671264