-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Update: Label of "Move to trash" action to "Trash". #72596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update: Label of "Move to trash" action to "Trash". #72596
Conversation
jameskoster
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving on the assumption that this also applies to Templates.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -9 B (0%) Total Size: 2.19 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 1241e75. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18744708657
|
Co-authored-by: jorgefilipecosta <[email protected]> Co-authored-by: jameskoster <[email protected]> Co-authored-by: simison <[email protected]> Co-authored-by: hanneslsm <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: 289102f |
| const trashPost: Action< PostWithPermissions > = { | ||
| id: 'move-to-trash', | ||
| label: __( 'Move to trash' ), | ||
| label: __( 'Trash' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to become _x( 'Trash', 'verb' ) because Trash can be a verb and a noun, and in many languages it makes a difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would also help to reuse the same translation from further down in the same file.
Follow-up at #73704
| { _x( 'Trash', 'verb' ) } |
Fixes: #72539
Updates the label of "Move to trash" action to "Trash".
Testing Instructions
Go to /wp-admin/site-editor.php?p=%2Fpage
Hover a page and very the action to tash is labeled as "Trash".
Select multiple pages and verify the action is still labeled "Trash".