-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Remove most of the occurrences of the verb toggle. #66371
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
Conversation
Size Change: +20 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
Reminder: Props to @AhmarZaidi for reporting some of the occurrences on #66319 (comment) |
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. |
@@ -412,7 +412,7 @@ export default function PostList( { postType } ) { | |||
size="compact" | |||
isPressed={ quickEdit } | |||
icon={ drawerRight } | |||
label={ __( 'Toggle details panel' ) } | |||
label={ __( 'Details panel' ) } |
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.
Does this still need the word "panel"?
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.
Good point. I just searched for other occurrences of strings that end with panel
. Found the following ones:
'Details panel'
'Save panel'
'Open save panel'
'Open %s styles in Styles panel'
'Show or hide the Block settings panel'
'Close panel'
'Open publish panel'
Should we consider them holistically or evaluate on a case by case basis?
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.
I thought this could be evaluated on case by case because I saw the name and thought this was limited to the data views.
But I found that I don't know where in the interface this is used.
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.
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.
Yes, it is worth mentioning that the Gutenberg experiment 'Quick Edit in DataViews' needs to be enabled for this icon button to show. That said, I'd agree this button label should not include the word 'panel' to be consistent with other similar controls that perform the same action e.g. the 'Settings' panel.
packages/editor/src/components/global-keyboard-shortcuts/register-shortcuts.js
Show resolved
Hide resolved
? __( 'Exit Distraction Free' ) | ||
: __( 'Enter Distraction Free' ), | ||
? __( 'Exit Distraction free' ) | ||
: __( 'Enter Distraction free' ), |
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.
Should this include the word "mode" like in the actions and for the Spotlight mode?
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.
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.
I see.
Then is it a problem that the actions use "mode" ?
https://github.com/WordPress/gutenberg/pull/66371/files#diff-720958d1c802af9bf18a040f83ca28fe8b3ff42b6c1c81566426a2adb970f3e2R844
c5829dd
to
5e0a7af
Compare
* Remove most of the occurrences of the verb toggle. * Remove term panel. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: mcsf <mcsf@git.wordpress.org>
Fixes #66369
What?
Removes the verb 'toggle' from most of the UI.
Why?
The verb
toggle
is not well translatable in many languages and should not be used in the UI.It's a well known issue, see #42492 and Trac https://core.trac.wordpress.org/ticket/34753 (November 2015).
How?
Either removes or replaces the verb 'toggle' from translatabel strings.
Note:
I kept two occurrences:
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast