diff --git wp-includes/class-wp-customize-widgets.php wp-includes/class-wp-customize-widgets.php
index a605b90..5c78e2b 100644
|
|
final class WP_Customize_Widgets { |
741 | 741 | */ |
742 | 742 | $some_non_rendered_areas_messages = array(); |
743 | 743 | $some_non_rendered_areas_messages[1] = html_entity_decode( |
744 | | /* translators: placeholder is the number of other widget areas registered but not rendered */ |
| 744 | /* translators: (1) is the number of other widget areas registered but not rendered */ |
745 | 745 | __( 'Your theme has 1 other widget area, but this particular page doesn’t display it.' ), |
746 | 746 | ENT_QUOTES, |
747 | 747 | get_bloginfo( 'charset' ) |
… |
… |
final class WP_Customize_Widgets { |
749 | 749 | $registered_sidebar_count = count( $wp_registered_sidebars ); |
750 | 750 | for ( $non_rendered_count = 2; $non_rendered_count < $registered_sidebar_count; $non_rendered_count++ ) { |
751 | 751 | $some_non_rendered_areas_messages[ $non_rendered_count ] = html_entity_decode( sprintf( |
752 | | /* translators: placeholder is the number of other widget areas registered but not rendered */ |
| 752 | /* translators: %s is the number of other widget areas registered but not rendered */ |
753 | 753 | _n( |
754 | 754 | 'Your theme has %s other widget area, but this particular page doesn’t display it.', |
755 | 755 | 'Your theme has %s other widget areas, but this particular page doesn’t display them.', |
… |
… |
final class WP_Customize_Widgets { |
761 | 761 | |
762 | 762 | if ( 1 === $registered_sidebar_count ) { |
763 | 763 | $no_areas_shown_message = html_entity_decode( sprintf( |
764 | | /* translators: placeholder is the total number of widget areas registered */ |
| 764 | /* translators: (1) is the total number of widget areas registered */ |
765 | 765 | __( 'Your theme has 1 widget area, but this particular page doesn’t display it.' ) |
766 | 766 | ), ENT_QUOTES, get_bloginfo( 'charset' ) ); |
767 | 767 | } else { |
768 | 768 | $no_areas_shown_message = html_entity_decode( sprintf( |
769 | | /* translators: placeholder is the total number of widget areas registered */ |
| 769 | /* translators: %s is the total number of widget areas registered */ |
770 | 770 | _n( |
771 | 771 | 'Your theme has %s widget area, but this particular page doesn’t display it.', |
772 | 772 | 'Your theme has %s widget areas, but this particular page doesn’t display them.', |
… |
… |
final class WP_Customize_Widgets { |
794 | 794 | 'reorderModeOn' => __( 'Reorder mode enabled' ), |
795 | 795 | 'reorderModeOff' => __( 'Reorder mode closed' ), |
796 | 796 | 'reorderLabelOn' => esc_attr__( 'Reorder widgets' ), |
797 | | /* translators: placeholder is the count for the number of widgets found */ |
| 797 | /* translators: %d is the count for the number of widgets found */ |
798 | 798 | 'widgetsFound' => __( 'Number of widgets found: %d' ), |
799 | 799 | 'noWidgetsFound' => __( 'No widgets found.' ), |
800 | 800 | ), |
diff --git wp-includes/widgets/class-wp-widget-media-audio.php wp-includes/widgets/class-wp-widget-media-audio.php
index c6f8c53..471b6fe 100644
|
|
class WP_Widget_Media_Audio extends WP_Widget_Media { |
34 | 34 | 'replace_media' => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), |
35 | 35 | 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), |
36 | 36 | 'missing_attachment' => sprintf( |
37 | | /* translators: placeholder is URL to media library */ |
| 37 | /* translators: %s is URL to media library */ |
38 | 38 | __( 'We can’t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), |
39 | 39 | esc_url( admin_url( 'upload.php' ) ) |
40 | 40 | ), |
… |
… |
class WP_Widget_Media_Audio extends WP_Widget_Media { |
79 | 79 | 'type' => 'string', |
80 | 80 | 'default' => '', |
81 | 81 | 'format' => 'uri', |
82 | | /* translators: placeholder is audio extension */ |
| 82 | /* translators: %s is audio extension */ |
83 | 83 | 'description' => sprintf( __( 'URL to the %s audio source file' ), $audio_extension ), |
84 | 84 | ); |
85 | 85 | } |
diff --git wp-includes/widgets/class-wp-widget-media-image.php wp-includes/widgets/class-wp-widget-media-image.php
index 22e891f..44b9767 100644
|
|
class WP_Widget_Media_Image extends WP_Widget_Media { |
34 | 34 | 'replace_media' => _x( 'Replace Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), |
35 | 35 | 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), |
36 | 36 | 'missing_attachment' => sprintf( |
37 | | /* translators: placeholder is URL to media library */ |
| 37 | /* translators: %s is URL to media library */ |
38 | 38 | __( 'We can’t find that image. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), |
39 | 39 | esc_url( admin_url( 'upload.php' ) ) |
40 | 40 | ), |
… |
… |
class WP_Widget_Media_Image extends WP_Widget_Media { |
328 | 328 | <img class="attachment-thumb" src="{{ data.url }}" draggable="false" alt="{{ data.alt }}" <# if ( ! data.alt && data.currentFilename ) { #> aria-describedby="{{ describedById }}" <# } #> /> |
329 | 329 | <# if ( ! data.alt && data.currentFilename ) { #> |
330 | 330 | <p class="hidden" id="{{ describedById }}"><?php |
331 | | /* translators: placeholder is image filename */ |
| 331 | /* translators: %s is image filename */ |
332 | 332 | echo sprintf( __( 'Current image: %s' ), '{{ data.currentFilename }}' ); |
333 | 333 | ?></p> |
334 | 334 | <# } #> |
diff --git wp-includes/widgets/class-wp-widget-media-video.php wp-includes/widgets/class-wp-widget-media-video.php
index f05928f..0765aea 100644
|
|
class WP_Widget_Media_Video extends WP_Widget_Media { |
34 | 34 | 'replace_media' => _x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), |
35 | 35 | 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), |
36 | 36 | 'missing_attachment' => sprintf( |
37 | | /* translators: placeholder is URL to media library */ |
| 37 | /* translators: %s is URL to media library */ |
38 | 38 | __( 'We can’t find that video. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), |
39 | 39 | esc_url( admin_url( 'upload.php' ) ) |
40 | 40 | ), |
41 | 41 | /* translators: %d is widget count */ |
42 | 42 | 'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ), |
43 | 43 | 'media_library_state_single' => __( 'Video Widget' ), |
44 | | /* translators: placeholder is a list of valid video file extensions */ |
| 44 | /* translators: %1$s is a list of valid video file extensions */ |
45 | 45 | '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>' ), |
46 | 46 | ) ); |
47 | 47 | } |
… |
… |
class WP_Widget_Media_Video extends WP_Widget_Media { |
89 | 89 | 'type' => 'string', |
90 | 90 | 'default' => '', |
91 | 91 | 'format' => 'uri', |
92 | | /* translators: placeholder is video extension */ |
| 92 | /* translators: %s is video extension */ |
93 | 93 | 'description' => sprintf( __( 'URL to the %s video source file' ), $video_extension ), |
94 | 94 | ); |
95 | 95 | } |
diff --git wp-includes/widgets/class-wp-widget-media.php wp-includes/widgets/class-wp-widget-media.php
index 10f92ab..af9b242 100644
|
|
abstract class WP_Widget_Media extends WP_Widget { |
70 | 70 | 'edit_media' => _x( 'Edit Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ), |
71 | 71 | 'add_to_widget' => __( 'Add to Widget' ), |
72 | 72 | 'missing_attachment' => sprintf( |
73 | | /* translators: placeholder is URL to media library */ |
| 73 | /* translators: %s is URL to media library */ |
74 | 74 | __( 'We can’t find that file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ), |
75 | 75 | esc_url( admin_url( 'upload.php' ) ) |
76 | 76 | ), |