Media: Use '%d selected' for the selection string, and offer a comment to translators to help them find a workable solution with this would-be plural string. fixes #22749. see #22229.
git-svn-id: http://core.svn.wordpress.org/trunk@23075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2763e74dd8
commit
c42ae7acb6
|
@ -3731,7 +3731,7 @@
|
||||||
this.$el.toggleClass( 'one', 1 === collection.length );
|
this.$el.toggleClass( 'one', 1 === collection.length );
|
||||||
this.$el.toggleClass( 'editing', editing );
|
this.$el.toggleClass( 'editing', editing );
|
||||||
|
|
||||||
this.$('.count').text( collection.length + ' ' + l10n.selected );
|
this.$('.count').text( l10n.selected.replace('%d', collection.length) );
|
||||||
},
|
},
|
||||||
|
|
||||||
edit: function( event ) {
|
edit: function( event ) {
|
||||||
|
|
|
@ -1461,7 +1461,11 @@ function wp_enqueue_media( $args = array() ) {
|
||||||
'search' => __( 'Search' ),
|
'search' => __( 'Search' ),
|
||||||
'select' => __( 'Select' ),
|
'select' => __( 'Select' ),
|
||||||
'cancel' => __( 'Cancel' ),
|
'cancel' => __( 'Cancel' ),
|
||||||
'selected' => __( 'selected' ),
|
/* translators: This is a would-be plural string used in the media manager.
|
||||||
|
If there is not a word you can use in your language to avoid issues with the
|
||||||
|
lack of plural support here, turn it into "selected: %d" then translate it.
|
||||||
|
*/
|
||||||
|
'selected' => __( '%d selected' ),
|
||||||
'dragInfo' => __( 'Drag and drop to reorder images.' ),
|
'dragInfo' => __( 'Drag and drop to reorder images.' ),
|
||||||
|
|
||||||
// Upload
|
// Upload
|
||||||
|
|
Loading…
Reference in New Issue