-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Unify theme block placeholder content #35517
Conversation
Size Change: -18 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Good spot. I think I lean towards titlecase. It doesn't feel quite right for the Post Content block, but feels more appropriate in general. Re post terms, ideally the output should be contextual, IE "Post Categories" instead of "Post Terms". Unfortunately this is beyond my skill to implement since these are block variations. |
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.
Let's try this as it's an improvement over what's shipping. We can always circle back.
One note. It probably would be better to use the i18n function with the context so there is only one translation used. For the block title it is
In other places it's handled with
|
Oh yeah that sounds better, unfortunately I'm not sure how to do that 😞 |
The following should do the trick: - <p>{ __( 'Post Content' ) }</p>
+ <p>{ _x( 'Post Content', 'block title' ) }</p> |
Part of #35501.
Unifies the content of site editor block placeholder states by simply echoing the block name.
To test:
Unfortunately Post Categories and Post Tags blocks are variations of the Post Terms block, so I don't think we can be more explicit on the canvas.