Make sure Playlist states that are `audio` are marked as such with proper localized strings.
See #27554. Built from https://develop.svn.wordpress.org/trunk@27789 git-svn-id: http://core.svn.wordpress.org/trunk@27625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff6c0731fa
commit
26773541ab
|
@ -892,6 +892,10 @@
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
var collectionType = this.get('collectionType');
|
var collectionType = this.get('collectionType');
|
||||||
|
|
||||||
|
if ( 'video' === this.get( 'type' ) ) {
|
||||||
|
collectionType = 'video-' + collectionType;
|
||||||
|
}
|
||||||
|
|
||||||
this.set( 'id', collectionType + '-library' );
|
this.set( 'id', collectionType + '-library' );
|
||||||
this.set( 'toolbar', collectionType + '-add' );
|
this.set( 'toolbar', collectionType + '-add' );
|
||||||
this.set( 'menu', collectionType );
|
this.set( 'menu', collectionType );
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -478,8 +478,6 @@
|
||||||
add_audio: "Add Audio",
|
add_audio: "Add Audio",
|
||||||
editgallery: "Edit Gallery",
|
editgallery: "Edit Gallery",
|
||||||
delgallery: "Delete Gallery",
|
delgallery: "Delete Gallery",
|
||||||
editplaylist: "Edit Playlist",
|
|
||||||
delplaylist: "Delete Playlist",
|
|
||||||
wp_fullscreen_desc: "Distraction Free Writing mode (Alt + Shift + W)"
|
wp_fullscreen_desc: "Distraction Free Writing mode (Alt + Shift + W)"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2514,12 +2514,12 @@ function wp_enqueue_media( $args = array() ) {
|
||||||
// Playlist
|
// Playlist
|
||||||
'playlistDragInfo' => __( 'Drag and drop to reorder tracks.' ),
|
'playlistDragInfo' => __( 'Drag and drop to reorder tracks.' ),
|
||||||
'createPlaylistTitle' => __( 'Create Audio Playlist' ),
|
'createPlaylistTitle' => __( 'Create Audio Playlist' ),
|
||||||
'editPlaylistTitle' => __( 'Edit Playlist' ),
|
'editPlaylistTitle' => __( 'Edit Audio Playlist' ),
|
||||||
'cancelPlaylistTitle' => __( '← Cancel Playlist' ),
|
'cancelPlaylistTitle' => __( '← Cancel Audio Playlist' ),
|
||||||
'insertPlaylist' => __( 'Insert playlist' ),
|
'insertPlaylist' => __( 'Insert audio playlist' ),
|
||||||
'updatePlaylist' => __( 'Update playlist' ),
|
'updatePlaylist' => __( 'Update audio playlist' ),
|
||||||
'addToPlaylist' => __( 'Add to playlist' ),
|
'addToPlaylist' => __( 'Add to audio playlist' ),
|
||||||
'addToPlaylistTitle' => __( 'Add to Playlist' ),
|
'addToPlaylistTitle' => __( 'Add to Audio Playlist' ),
|
||||||
|
|
||||||
// Video Playlist
|
// Video Playlist
|
||||||
'videoPlaylistDragInfo' => __( 'Drag and drop to reorder videos.' ),
|
'videoPlaylistDragInfo' => __( 'Drag and drop to reorder videos.' ),
|
||||||
|
|
Loading…
Reference in New Issue