From 8f9738d5a83c5db821f856de9f320a6b039d676e Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Wed, 13 Feb 2019 07:21:50 +0100 Subject: [PATCH] Gallery: translate string, not results of sprintf (#13830) --- 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 (