Skip to content

I18N: Replace 'Toggle' with clearer alternatives in user-facing strings#11806

Open
itzmekhokan wants to merge 3 commits into
WordPress:trunkfrom
itzmekhokan:34753
Open

I18N: Replace 'Toggle' with clearer alternatives in user-facing strings#11806
itzmekhokan wants to merge 3 commits into
WordPress:trunkfrom
itzmekhokan:34753

Conversation

@itzmekhokan
Copy link
Copy Markdown

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

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.
@github-actions
Copy link
Copy Markdown

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props khokansardar.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link
Copy Markdown

Test using WordPress Playground

The 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

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant