I18N: Replace 'Toggle' with clearer alternatives in user-facing strings#11806
I18N: Replace 'Toggle' with clearer alternatives in user-facing strings#11806itzmekhokan wants to merge 3 commits into
Conversation
Replace user-facing uses of 'toggle' in wp-admin translatable strings with clearer alternatives per style guide recommendations from Microsoft, Apple, and IBM. - template.php: 'Toggle panel: %s' → 'Show or hide panel: %s' - site-health.php: 'Toggle extra menu items' → 'Show or hide extra menu items' - network.php: 'toggle between' → 'switch between' These changes improve clarity for screen reader users and align with established writing style guidelines that recommend avoiding 'toggle' as a verb in user-facing materials. See #34753.
Replace user-facing uses of 'toggle' in wp-includes translatable strings with clearer alternatives per style guide recommendations. - class-wp-editor.php: 'toggle this option off' → 'turn this option off' - script-loader.php: 'Toggle Editor Text Direction' → 'Switch Editor Text Direction' Note: The TinyMCE array key 'Toolbar Toggle' (used as a mapping key for the TinyMCE translation system) is preserved as-is, since changing the key would break the TinyMCE translation mapping. The 'Toolbar Toggle' label refers to a specific TinyMCE button name. See #34753.
Update the TinyMCE 'Toolbar Toggle' button tooltip from 'Toolbar Toggle' to 'Show or hide the toolbar' for better clarity. The TinyMCE array key remains unchanged to maintain compatibility with the TinyMCE translation mapping system. Also update the corresponding help text in edit-form-advanced.php to match the new button description and avoid using 'toggle'. See #34753.
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
This PR resolves by standardizing user-facing terminology and removing the use of "Toggle" as a verb.
Per style guides from Microsoft, Apple, and IBM, "toggle" should generally not be used in user-facing materials, as it can be confusing for screen reader users or non-technical audiences. Instead, this PR updates these strings to describe the action directly (e.g., "Show or hide", "Turn on or off", "Switch").
Trac ticket: https://core.trac.wordpress.org/ticket/34753