-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Post Excerpt: improve preview on the editor site #50167
Post Excerpt: improve preview on the editor site #50167
Conversation
Assembling the string like this will not work for many languages other than English, so this should be avoided. Please consult the polyglots team on this! I highly recommend rephrasing the sentences to avoid this issues, or add these to |
I don't believe this is the correct solution, because the text must be fully translatable. I think a better solution that we could also use for other blocks is to use a more generic description without the post type. |
Good point! Thinking about it, this would be the easiest way to fix the issue. We could do the same for #48963 |
Agree! Generic does seem the best route here. "Title" vs "Post Title", "Excerpt" vs "Post Excerpt" etc. |
This seems like a good solution probably. Any thoughts on this @mtias, @jasmussen @jameskoster ? |
Would "Excerpt" work for WooCommerce @nerrad? |
Agree, simple and generic works well here. |
d79973d
to
f3a3037
Compare
Thanks for your precious feedback! I make the labels more generic as well with f3a30376df53a55dd5bdfa7558ebd254e1ae049c. What do you think? |
Even if it wouldn't be the best fit, we can update the name and description of the block with a variation (as we are already doing). The main issue was the labels in the edit file that we can't control. |
This. I think conceptually it also works well across the breadth of different post types that might be used on a given WordPress site (or WooCommerce store). The presence of "Post" nomenclature for all these post types was the most pressing issue here. |
"category": "theme", | ||
"description": "Display a post's excerpt.", | ||
"description": "Display an excerpt.", |
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 be "the" excerpt?
There's an inconsistent use of "the excerpt" and "an excerpt" that would be good to address |
e0fe493
to
80d6a4d
Compare
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.
Changes look good. I also did a double-check through the codebase to see if there are any other instances of the string that could be updated and didn't find any so looks like you got them all.
* rename post-excerpt to excerpt and update labels * improve description * improve warning label
What?
This PR improves the preview of the block on the editor.
Fixes #48964
Why?
Currently, in the editor, the preview of the Post Excerpt is hard-coded, and it is:
Making the block title and labels more generic would improve the user experience:
There is a similar issue for the
Post Title
block #48963. Also, this PR could be part of this macro issue #49108.How?
The PR renames the block to Excerpt and updates the labels to make it more generic.
Testing Instructions
Screenshots or screencast