Changeset 53136
- Timestamp:
- 04/11/2022 12:06:15 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-audio.php
r53131 r53136 42 42 'missing_attachment' => sprintf( 43 43 /* translators: %s: URL to media library. */ 44 __( 'That audio file can 44 __( 'That audio file cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 45 45 esc_url( admin_url( 'upload.php' ) ) 46 46 ), -
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r53131 r53136 42 42 'missing_attachment' => sprintf( 43 43 /* translators: %s: URL to media library. */ 44 __( 'That image can 44 __( 'That image cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 45 45 esc_url( admin_url( 'upload.php' ) ) 46 46 ), -
trunk/src/wp-includes/widgets/class-wp-widget-media-video.php
r53131 r53136 42 42 'missing_attachment' => sprintf( 43 43 /* translators: %s: URL to media library. */ 44 __( 'That video can 44 __( 'That video cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 45 45 esc_url( admin_url( 'upload.php' ) ) 46 46 ), … … 49 49 'media_library_state_single' => __( 'Video Widget' ), 50 50 /* translators: %s: A list of valid video file extensions. */ 51 'unsupported_file_type' => sprintf( __( 'Sorry, the video at the supplied URL can 51 'unsupported_file_type' => sprintf( __( 'Sorry, the video at the supplied URL cannot be loaded. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ), 52 52 ) 53 53 ); -
trunk/src/wp-includes/widgets/class-wp-widget-media.php
r53131 r53136 75 75 'missing_attachment' => sprintf( 76 76 /* translators: %s: URL to media library. */ 77 __( 'That file can 77 __( 'That file cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 78 78 esc_url( admin_url( 'upload.php' ) ) 79 79 ), -
trunk/tests/qunit/index.html
r53131 r53136 122 122 123 123 wp.mediaWidgets.controlConstructors[ "media_image" ].prototype.mime_type = "image"; 124 _.extend( wp.mediaWidgets.controlConstructors[ "media_image" ].prototype.l10n, {"no_media_selected":"No image selected","select_media":"Select Image","change_media":"Change Image","edit_media":"Edit Image","add_to_widget":"Add to Widget","missing_attachment":"That image can 124 _.extend( wp.mediaWidgets.controlConstructors[ "media_image" ].prototype.l10n, {"no_media_selected":"No image selected","select_media":"Select Image","change_media":"Change Image","edit_media":"Edit Image","add_to_widget":"Add to Widget","missing_attachment":"That image cannot be found. Check your <a href=\"http:\/\/src.wordpress-develop.dev\/wp-admin\/upload.php\">media library<\/a> and make sure it was not deleted.","media_library_state_multi":{"0":"Image Widget (%d)","1":"Image Widget (%d)","singular":"Image Widget (%d)","plural":"Image Widget (%d)","context":null,"domain":null},"media_library_state_single":"Image Widget"} ); 125 125 </script> 126 126 <script src="../../build/wp-admin/js/widgets/media-video-widget.js"></script> … … 129 129 130 130 wp.mediaWidgets.controlConstructors[ "media_video" ].prototype.mime_type = "video"; 131 _.extend( wp.mediaWidgets.controlConstructors[ "media_video" ].prototype.l10n, {"no_media_selected":"No video selected","select_media":"Select Video","change_media":"Change Video","edit_media":"Edit Video","add_to_widget":"Add to Widget","missing_attachment":"That video can 131 _.extend( wp.mediaWidgets.controlConstructors[ "media_video" ].prototype.l10n, {"no_media_selected":"No video selected","select_media":"Select Video","change_media":"Change Video","edit_media":"Edit Video","add_to_widget":"Add to Widget","missing_attachment":"That video cannot be found. Check your <a href=\"http:\/\/src.wordpress-develop.dev\/wp-admin\/upload.php\">media library<\/a> and make sure it was not deleted.","media_library_state_multi":{"0":"Video Widget (%d)","1":"Video Widget (%d)","singular":"Video Widget (%d)","plural":"Video Widget (%d)","context":null,"domain":null},"media_library_state_single":"Video Widget"} ); 132 132 </script> 133 133 <script src="../../build/wp-admin/js/widgets/media-audio-widget.js"></script> … … 136 136 137 137 wp.mediaWidgets.controlConstructors[ "media_audio" ].prototype.mime_type = "audio"; 138 _.extend( wp.mediaWidgets.controlConstructors[ "media_audio" ].prototype.l10n, {"no_media_selected":"No audio selected","select_media":"Select File","change_media":"Change Audio","edit_media":"Edit Audio","add_to_widget":"Add to Widget","missing_attachment":"That audio file can 138 _.extend( wp.mediaWidgets.controlConstructors[ "media_audio" ].prototype.l10n, {"no_media_selected":"No audio selected","select_media":"Select File","change_media":"Change Audio","edit_media":"Edit Audio","add_to_widget":"Add to Widget","missing_attachment":"That audio file cannot be found. Check your <a href=\"http:\/\/src.wordpress-develop.dev\/wp-admin\/upload.php\">media library<\/a> and make sure it was not deleted.","media_library_state_multi":{"0":"Audio Widget (%d)","1":"Audio Widget (%d)","singular":"Audio Widget (%d)","plural":"Audio Widget (%d)","context":null,"domain":null},"media_library_state_single":"Audio Widget"} ); 139 139 </script> 140 140 <script type='text/javascript' src='../../build/wp-admin/js/widgets/media-gallery-widget.js'></script> … … 636 636 <# if ( data.error && 'missing_attachment' === data.error ) { #> 637 637 <div class="notice notice-error notice-alt notice-missing-attachment"> 638 <p>That image can 638 <p>That image cannot be found. Check your <a href="http://src.wordpress-develop.test/wp-admin/upload.php">media library</a> and make sure it was not deleted.</p> 639 639 </div> 640 640 <# } else if ( data.error ) { #> … … 677 677 <# if ( data.error && 'missing_attachment' === data.error ) { #> 678 678 <div class="notice notice-error notice-alt notice-missing-attachment"> 679 <p>That video can 679 <p>That video cannot be found. Check your <a href="http://src.wordpress-develop.test/wp-admin/upload.php">media library</a> and make sure it was not deleted.</p> 680 680 </div> 681 681 <# } else if ( data.error && 'unsupported_file_type' === data.error ) { #> 682 682 <div class="notice notice-error notice-alt notice-missing-attachment"> 683 <p>Sorry, the video at the supplied URL can 683 <p>Sorry, the video at the supplied URL cannot be loaded. Please check that the URL is for a supported video file (<code>.mp4</code>, <code>.m4v</code>, <code>.webm</code>, <code>.ogv</code>, <code>.flv</code>) or stream (e.g. YouTube and Vimeo).</p> 684 684 </div> 685 685 <# } else if ( data.error ) { #> … … 805 805 <# if ( data.error && 'missing_attachment' === data.error ) { #> 806 806 <div class="notice notice-error notice-alt notice-missing-attachment"> 807 <p>That audio file can 807 <p>That audio file cannot be found. Check your <a href="http://src.wordpress-develop.test/wp-admin/upload.php">media library</a> and make sure it was not deleted.</p> 808 808 </div> 809 809 <# } else if ( data.error ) { #>
Note: See TracChangeset
for help on using the changeset viewer.