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:
Scott Taylor 2014-03-27 18:37:17 +00:00
parent ff6c0731fa
commit 26773541ab
4 changed files with 11 additions and 9 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 );

File diff suppressed because one or more lines are too long

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.' ),