-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Editor: Define the labels of the pattern categories taxonomy #5929
Editor: Define the labels of the pattern categories taxonomy #5929
Conversation
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.
✅ Looks good, thank you!
'not_found' => __( 'No pattern categories found.' ), | ||
'popular_items' => __( 'Popular Pattern Categories' ), | ||
'search_items' => __( 'Search Pattern Categories' ), | ||
'separate_items_with_commas' => __( 'Separate pattern categories with commas' ), |
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.
For "pattern categories", we use different text cases that need to be consistent.
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.
separate_items_with_commas
is lowercase for regular tags by default, so this seems correct.
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, I did copy from the tags I think and adapted the labels.
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.
For Link Category taxonomy we use 'back_to_items' => __( '← Go to Link Categories' ),
and for Pattern Category we use 'back_to_items' => __( '← Go to pattern categories' ),
it should be 'back_to_items' => __( '← Go to Pattern Categories' ),
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.
Here's a follow-up #5930
Trac ticket: https://core.trac.wordpress.org/ticket/60322
In WordPress 6.5, the editor UI is going to be using a standard component for the taxonomies in the editor including the pattern categories. This means that all the labels need to be defined properly for this taxonomy.
This backports the change from WordPress/gutenberg#57094