Make curly quotes in playlist item title translatable.

fixes #33391.
Built from https://develop.svn.wordpress.org/trunk@33844


git-svn-id: http://core.svn.wordpress.org/trunk@33812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-01 13:50:21 +00:00
parent 9b8169bd30
commit bffe6a63ba
3 changed files with 9 additions and 11 deletions

View File

@ -216,14 +216,6 @@ video.wp-video-shortcode,
line-height: 1.5;
}
.wp-playlist-item-title:before {
content: '“';
}
.wp-playlist-item-title:after {
content: '”';
}
.wp-playlist-item-album {
font-style: italic;
overflow: hidden;

View File

@ -1173,7 +1173,10 @@ function wp_underscore_playlist_templates() {
<img src="{{ data.thumb.src }}"/>
<# } #>
<div class="wp-playlist-caption">
<span class="wp-playlist-item-meta wp-playlist-item-title">{{ data.title }}</span>
<span class="wp-playlist-item-meta wp-playlist-item-title"><?php
/* translators: playlist item title */
printf( _x( '&#8220;%s&#8221;', 'playlist item title' ), '{{ data.title }}' );
?></span>
<# if ( data.meta.album ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.album }}</span><# } #>
<# if ( data.meta.artist ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.artist }}</span><# } #>
</div>
@ -1185,7 +1188,10 @@ function wp_underscore_playlist_templates() {
<# if ( data.caption ) { #>
{{ data.caption }}
<# } else { #>
<span class="wp-playlist-item-title">{{{ data.title }}}</span>
<span class="wp-playlist-item-title"><?php
/* translators: playlist item title */
printf( _x( '&#8220;%s&#8221;', 'playlist item title' ), '{{{ data.title }}}' );
?></span>
<# if ( data.artists && data.meta.artist ) { #>
<span class="wp-playlist-item-artist"> &mdash; {{ data.meta.artist }}</span>
<# } #>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33843';
$wp_version = '4.4-alpha-33844';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.