Avoid more occurrences of the term 'sidebar' in user-facing strings #61499
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
l10n
Localization and translations best practices
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
In #49613 and #49614 the term 'sidebar' was removed from most of the user-facing text / labels / names.
There is also an issue open to remove the term 'sidebar' from the Handbook, see #57546
In the meantime. I noticed that new occurrences of the term 'sidebar' are still in the codebase and they should be replaced by a more generic, non-biased, term such as 'panel'.
To recap the main reasons why the term 'sidebar' should be avoided:
It would be great to educate all contributors to not use the term 'sidebar' other than for internal purposes. It should never be used in user-facing strings or public documentation.
Step-by-step reproduction instructions
Occurrences found in the codebase as of May 2024:
_e( 'You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.', 'gutenberg' );
label: __( 'Toggle settings sidebar' )
- in the commands palette, common commandslabel: __( 'Toggle settings sidebar' )
- in the commands palette, edit mode commandsel( PanelBody, {}, __( 'My sidebar content' ) )
in the editor README, + 3 more occurrencesdescription: __( 'Show or hide the Settings sidebar.' ),
in the global keyboard shortcutsNote; while the occurrences in the docblocks aren't technically user-facing, they do suggest to use the term 'sidebar' in user-facing strings. As such, they should be changes as well.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: