Skip to content

Commit

Permalink
fix: Simplify the sprintf translations for percentage widths (#68587)
Browse files Browse the repository at this point in the history
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

1 comment on commit d9e4df8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in d9e4df8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12711376523
📝 Reported issues:

Please sign in to comment.