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: https://develop.svn.wordpress.org/trunk@23075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-05 19:03:38 +00:00
parent b2bafcca6a
commit bdba526d83
2 changed files with 6 additions and 2 deletions

View File

@ -3731,7 +3731,7 @@
this.$el.toggleClass( 'one', 1 === collection.length );
this.$el.toggleClass( 'editing', editing );
this.$('.count').text( collection.length + ' ' + l10n.selected );
this.$('.count').text( l10n.selected.replace('%d', collection.length) );
},
edit: function( event ) {

View File

@ -1461,7 +1461,11 @@ function wp_enqueue_media( $args = array() ) {
'search' => __( 'Search' ),
'select' => __( 'Select' ),
'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.' ),
// Upload