Skip to content

Commit

Permalink
Gallery: translate string, not results of sprintf (#13830)
Browse files Browse the repository at this point in the history
  • Loading branch information
simison authored and youknowriad committed Mar 6, 2019
1 parent 887d198 commit c98f664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class GalleryEdit extends Component {
{ dropZone }
{ images.map( ( img, index ) => {
/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
const ariaLabel = __( sprintf( 'image %1$d of %2$d in gallery', ( index + 1 ), images.length ) );
const ariaLabel = sprintf( __( 'image %1$d of %2$d in gallery' ), ( index + 1 ), images.length );

return (
<li className="blocks-gallery-item" key={ img.id || img.url }>
Expand Down

0 comments on commit c98f664

Please sign in to comment.