Skip to content

Commit

Permalink
fix: Simplify the sprintf translations for percentage widths (WordPre…
Browse files Browse the repository at this point in the history
…ss#68587)

Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
4 people authored Jan 10, 2025
1 parent b2a83a3 commit d9e4df8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function ImageSizeControl( {
value={ scale }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
scale
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function WidthPanel( { selectedWidth, setAttributes } ) {
value={ widthValue }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
widthValue
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default function SearchEdit( {
value={ widthValue }
label={ sprintf(
/* translators: Percentage value. */
__( '%1$d%%' ),
__( '%d%%' ),
widthValue
) }
/>
Expand Down

0 comments on commit d9e4df8

Please sign in to comment.