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:
Scott Taylor 2014-03-27 18:36:03 +00:00
parent 85de422f33
commit 8312fca652
3 changed files with 10 additions and 8 deletions

View File

@ -892,6 +892,10 @@
initialize: function() {
var collectionType = this.get('collectionType');
if ( 'video' === this.get( 'type' ) ) {
collectionType = 'video-' + collectionType;
}
this.set( 'id', collectionType + '-library' );
this.set( 'toolbar', collectionType + '-add' );
this.set( 'menu', collectionType );

View File

@ -478,8 +478,6 @@
add_audio: "Add Audio",
editgallery: "Edit Gallery",
delgallery: "Delete Gallery",
editplaylist: "Edit Playlist",
delplaylist: "Delete Playlist",
wp_fullscreen_desc: "Distraction Free Writing mode (Alt + Shift + W)"
});

View File

@ -2514,12 +2514,12 @@ function wp_enqueue_media( $args = array() ) {
// Playlist
'playlistDragInfo' => __( 'Drag and drop to reorder tracks.' ),
'createPlaylistTitle' => __( 'Create Audio Playlist' ),
'editPlaylistTitle' => __( 'Edit Playlist' ),
'cancelPlaylistTitle' => __( '← Cancel Playlist' ),
'insertPlaylist' => __( 'Insert playlist' ),
'updatePlaylist' => __( 'Update playlist' ),
'addToPlaylist' => __( 'Add to playlist' ),
'addToPlaylistTitle' => __( 'Add to Playlist' ),
'editPlaylistTitle' => __( 'Edit Audio Playlist' ),
'cancelPlaylistTitle' => __( '← Cancel Audio Playlist' ),
'insertPlaylist' => __( 'Insert audio playlist' ),
'updatePlaylist' => __( 'Update audio playlist' ),
'addToPlaylist' => __( 'Add to audio playlist' ),
'addToPlaylistTitle' => __( 'Add to Audio Playlist' ),
// Video Playlist
'videoPlaylistDragInfo' => __( 'Drag and drop to reorder videos.' ),