From 5a880253d407712db6eafcf08e6fdaa932cb57b4 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 12 Feb 2019 09:05:58 +0200 Subject: [PATCH] Gallery: translate string, not results of sprintf --- packages/block-library/src/gallery/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index f83704b9c8b85..203403023abd2 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -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 (