Ticket #40702: 40702-duplicate-translations.diff
File 40702-duplicate-translations.diff, 3.0 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/dashboard.php
function wp_dashboard_events_news() { 1158 1158 /* translators: accessibility text */ 1159 1159 __( '(opens in a new window)' ) 1160 1160 ); 1161 1161 ?> 1162 1162 </p> 1163 1163 1164 1164 <?php 1165 1165 } 1166 1166 1167 1167 /** 1168 1168 * Prints the markup for the Community Events section of the Events and News Dashboard widget. 1169 1169 * 1170 1170 * @since 4.8.0 1171 1171 */ 1172 1172 function wp_print_community_events_markup() { 1173 $script_data = wp_get_community_events_script_data();1174 1175 1173 ?> 1176 1174 1177 1175 <div class="community-events-errors notice notice-error inline hide-if-js"> 1178 1176 <p class="hide-if-js"> 1179 1177 <?php _e( 'This widget requires JavaScript.'); ?> 1180 1178 </p> 1181 1179 1182 1180 <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.' ); ?> 1184 1182 </p> 1185 1183 1186 1184 <p class="community-events-could-not-locate" aria-hidden="true"></p> 1187 1185 </div> 1188 1186 1189 1187 <div class="community-events-loading hide-if-no-js"> 1190 1188 <?php _e( 'Loading…'); ?> 1191 1189 </div> 1192 1190 1193 1191 <?php 1194 1192 /* 1195 1193 * Hide the main element when the page first loads, because the content 1196 1194 * won't be ready until wp.communityEvents.renderEventsTemplate() has run. 1197 1195 */ 1198 1196 ?> … … function wp_print_community_events_marku 1223 1221 </form> 1224 1222 </div> 1225 1223 1226 1224 <ul class="community-events-results activity-block last"></ul> 1227 1225 </div> 1228 1226 1229 1227 <?php 1230 1228 } 1231 1229 1232 1230 /** 1233 1231 * Renders the events templates for the Event and News widget. 1234 1232 * 1235 1233 * @since 4.8.0 1236 1234 */ 1237 1235 function wp_print_community_events_templates() { 1238 $script_data = wp_get_community_events_script_data();1239 1240 1236 ?> 1241 1237 1242 1238 <script id="tmpl-community-events-attend-event-near" type="text/template"> 1243 1239 <?php printf( 1244 1240 /* translators: %s is a placeholder for the name of a city. */ 1245 1241 __( 'Attend an upcoming event near %s.' ), 1246 1242 '<strong>{{ data.location }}</strong>' 1247 1243 ); ?> 1248 1244 </script> 1249 1245 1250 1246 <script id="tmpl-community-events-could-not-locate" type="text/template"> 1251 1247 <?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." ), 1253 1250 '<em>{{data.unknownCity}}</em>' 1254 1251 ); ?> 1255 1252 </script> 1256 1253 1257 1254 <script id="tmpl-community-events-event-list" type="text/template"> 1258 1255 <# _.each( data.events, function( event ) { #> 1259 1256 <li class="event event-{{ event.type }} wp-clearfix"> 1260 1257 <div class="event-info"> 1261 1258 <div class="dashicons event-icon" aria-hidden="true"></div> 1262 1259 <div class="event-info-inner"> 1263 1260 <a class="event-title" href="{{ event.url }}">{{ event.title }}</a> 1264 1261 <span class="event-city">{{ event.location.location }}</span> 1265 1262 </div> 1266 1263 </div> 1267 1264