Changeset 41640
- Timestamp:
- 09/29/2017 11:41:06 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r41595 r41640 36 36 '<p>' . __( 'After typing in your edits, click Update File.' ) . '</p>' . 37 37 '<p>' . __( '<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' . 38 /* translators: placeholder islink to codex article about child themes */38 /* translators: %s: link to codex article about child themes */ 39 39 '<p>' . sprintf( __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="%s">child theme</a> instead.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ) . '</p>' . 40 40 ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ), -
trunk/src/wp-includes/class-wp-customize-manager.php
r41639 r41640 2617 2617 $response = array( 2618 2618 'setting_validities' => $setting_validities, 2619 /* translators: placeholder isnumber of invalid settings */2619 /* translators: %s: number of invalid settings */ 2620 2620 'message' => sprintf( _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ), 2621 2621 ); -
trunk/src/wp-includes/class-wp-customize-widgets.php
r41205 r41640 711 711 $some_non_rendered_areas_messages = array(); 712 712 $some_non_rendered_areas_messages[1] = html_entity_decode( 713 /* translators: placeholder is the number of other widget areas registered but not rendered */714 713 __( 'Your theme has 1 other widget area, but this particular page doesn’t display it.' ), 715 714 ENT_QUOTES, … … 719 718 for ( $non_rendered_count = 2; $non_rendered_count < $registered_sidebar_count; $non_rendered_count++ ) { 720 719 $some_non_rendered_areas_messages[ $non_rendered_count ] = html_entity_decode( sprintf( 721 /* translators: placeholder isthe number of other widget areas registered but not rendered */720 /* translators: %s: the number of other widget areas registered but not rendered */ 722 721 _n( 723 722 'Your theme has %s other widget area, but this particular page doesn’t display it.', … … 731 730 if ( 1 === $registered_sidebar_count ) { 732 731 $no_areas_shown_message = html_entity_decode( sprintf( 733 /* translators: placeholder is the total number of widget areas registered */734 732 __( 'Your theme has 1 widget area, but this particular page doesn’t display it.' ) 735 733 ), ENT_QUOTES, get_bloginfo( 'charset' ) ); 736 734 } else { 737 735 $no_areas_shown_message = html_entity_decode( sprintf( 738 /* translators: placeholder isthe total number of widget areas registered */736 /* translators: %s: the total number of widget areas registered */ 739 737 _n( 740 738 'Your theme has %s widget area, but this particular page doesn’t display it.', … … 764 762 'reorderModeOff' => __( 'Reorder mode closed' ), 765 763 'reorderLabelOn' => esc_attr__( 'Reorder widgets' ), 766 /* translators: placeholder is the count forthe number of widgets found */764 /* translators: %d: the number of widgets found */ 767 765 'widgetsFound' => __( 'Number of widgets found: %d' ), 768 766 'noWidgetsFound' => __( 'No widgets found.' ), -
trunk/src/wp-includes/script-loader.php
r41626 r41640 474 474 $scripts->add( 'wp-theme-plugin-editor', "/wp-admin/js/theme-plugin-editor$suffix.js", array( 'code-editor', 'jquery', 'jquery-ui-core', 'wp-a11y', 'underscore' ) ); 475 475 did_action( 'init' ) && $scripts->add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.l10n = %s;', wp_json_encode( wp_array_slice_assoc( 476 /* translators: placeholder iserror count */476 /* translators: %d: error count */ 477 477 _n_noop( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.' ), 478 478 array( 'singular', 'plural' ) … … 572 572 'untitledBlogName' => __( '(Untitled)' ), 573 573 'serverSaveError' => __( 'Failed connecting to the server. Please try saving again.' ), 574 /* translators: placeholder isURL to the Customizer to load the autosaved version */574 /* translators: %s: URL to the Customizer to load the autosaved version */ 575 575 'autosaveNotice' => __( 'There is a more recent autosave of your changes than the one you are previewing. <a href="%s">Restore the autosave</a>' ), 576 576 'videoHeaderNotice' => __( 'This theme doesn\'t support video headers on this page. Navigate to the front page or another page that supports video headers.' ), … … 578 578 'allowedFiles' => __( 'Allowed Files' ), 579 579 'customCssError' => wp_array_slice_assoc( 580 /* translators: placeholder iserror count */580 /* translators: %d: error count */ 581 581 _n_noop( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.' ), 582 582 array( 'singular', 'plural' ) … … 584 584 'pageOnFrontError' => __( 'Homepage and posts page must be different.' ), 585 585 'saveBlockedError' => wp_array_slice_assoc( 586 /* translators: placeholder iserror count */586 /* translators: %s: error count */ 587 587 _n_noop( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.' ), 588 588 array( 'singular', 'plural' ) … … 1171 1171 1172 1172 // This one is only used with wp.a11y.speak(), so it can/should be more brief. 1173 /* translators: %s is the name of a city.*/1173 /* translators: %s: the name of a city */ 1174 1174 'city_updated' => __( 'City updated. Listing events near %s.' ), 1175 1175 ) -
trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php
r41639 r41640 177 177 $l10n = array( 178 178 'errorNotice' => wp_array_slice_assoc( 179 /* translators: placeholder iserror count */179 /* translators: %d: error count */ 180 180 _n_noop( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.' ), 181 181 array( 'singular', 'plural' ) -
trunk/src/wp-includes/widgets/class-wp-widget-media-audio.php
r41162 r41640 34 34 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 35 35 'missing_attachment' => sprintf( 36 /* translators: placeholder isURL to media library */36 /* translators: %s: URL to media library */ 37 37 __( 'We can’t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), 38 38 esc_url( admin_url( 'upload.php' ) ) 39 39 ), 40 /* translators: %d iswidget count */40 /* translators: %d: widget count */ 41 41 'media_library_state_multi' => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ), 42 42 'media_library_state_single' => __( 'Audio Widget' ), … … 78 78 'default' => '', 79 79 'format' => 'uri', 80 /* translators: placeholder isaudio extension */80 /* translators: %s: audio extension */ 81 81 'description' => sprintf( __( 'URL to the %s audio source file' ), $audio_extension ), 82 82 ); -
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r41549 r41640 34 34 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), 35 35 'missing_attachment' => sprintf( 36 /* translators: placeholder isURL to media library */36 /* translators: %s: URL to media library */ 37 37 __( 'We can’t find that image. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), 38 38 esc_url( admin_url( 'upload.php' ) ) 39 39 ), 40 /* translators: %d iswidget count */40 /* translators: %d: widget count */ 41 41 'media_library_state_multi' => _n_noop( 'Image Widget (%d)', 'Image Widget (%d)' ), 42 42 'media_library_state_single' => __( 'Image Widget' ), -
trunk/src/wp-includes/widgets/class-wp-widget-media-video.php
r41198 r41640 34 34 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), 35 35 'missing_attachment' => sprintf( 36 /* translators: placeholder isURL to media library */36 /* translators: %s: URL to media library */ 37 37 __( 'We can’t find that video. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), 38 38 esc_url( admin_url( 'upload.php' ) ) 39 39 ), 40 /* translators: %d iswidget count */40 /* translators: %d: widget count */ 41 41 'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ), 42 42 'media_library_state_single' => __( 'Video Widget' ), 43 /* translators: placeholder isa list of valid video file extensions */44 'unsupported_file_type' => sprintf( __( 'Sorry, we can’t display the video file type selected. Please select a supported video file (% 1$s) or stream (YouTube or Vimeo) instead.' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),43 /* translators: %s: a list of valid video file extensions */ 44 'unsupported_file_type' => sprintf( __( 'Sorry, we can’t display the video file type selected. Please select a supported video file (%s) or stream (YouTube or Vimeo) instead.' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ), 45 45 ) ); 46 46 } … … 88 88 'default' => '', 89 89 'format' => 'uri', 90 /* translators: placeholder isvideo extension */90 /* translators: %s: video extension */ 91 91 'description' => sprintf( __( 'URL to the %s video source file' ), $video_extension ), 92 92 ); -
trunk/src/wp-includes/widgets/class-wp-widget-media.php
r41590 r41640 70 70 'add_to_widget' => __( 'Add to Widget' ), 71 71 'missing_attachment' => sprintf( 72 /* translators: placeholder isURL to media library */72 /* translators: %s: URL to media library */ 73 73 __( 'We can’t find that file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), 74 74 esc_url( admin_url( 'upload.php' ) ) 75 75 ), 76 /* translators: %d iswidget count */76 /* translators: %d: widget count */ 77 77 'media_library_state_multi' => _n_noop( 'Media Widget (%d)', 'Media Widget (%d)' ), 78 78 'media_library_state_single' => __( 'Media Widget' ),
Note: See TracChangeset
for help on using the changeset viewer.