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:
Andrew Nacin 2012-12-05 19:03:38 +00:00
parent 2763e74dd8
commit c42ae7acb6
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( '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 ) {

View File

@ -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