Make sure Playlist states that are audio
are marked as such with proper localized strings.
See #27554. git-svn-id: https://develop.svn.wordpress.org/trunk@27789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
85de422f33
commit
8312fca652
@ -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 );
|
||||||
|
@ -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
Block a user