Skip to content

Commit

Permalink
BlockGroupToolbar: Better i18n context for toolbar labels (WordPress#…
Browse files Browse the repository at this point in the history
…66211)

Make it less confusing for translators to translate the actions in BlockGroupToolbar, specifically the buttons to convert a selection of blocks to a Group, a Row, a Stack or a Grid.
  • Loading branch information
mcsf authored Oct 17, 2024
1 parent ff1d114 commit 2a215b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,27 @@ function BlockGroupToolbar() {
<ToolbarGroup>
<ToolbarButton
icon={ group }
label={ _x( 'Group', 'verb' ) }
label={ _x( 'Group', 'action: convert blocks to group' ) }
onClick={ onConvertToGroup }
/>
{ canInsertRow && (
<ToolbarButton
icon={ row }
label={ _x( 'Row', 'single horizontal line' ) }
label={ _x( 'Row', 'action: convert blocks to row' ) }
onClick={ onConvertToRow }
/>
) }
{ canInsertStack && (
<ToolbarButton
icon={ stack }
label={ _x( 'Stack', 'verb' ) }
label={ _x( 'Stack', 'action: convert blocks to stack' ) }
onClick={ onConvertToStack }
/>
) }
{ canInsertGrid && (
<ToolbarButton
icon={ grid }
label={ _x( 'Grid', 'verb' ) }
label={ _x( 'Grid', 'action: convert blocks to grid' ) }
onClick={ onConvertToGrid }
/>
) }
Expand Down

0 comments on commit 2a215b8

Please sign in to comment.