-
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
Post Comments Form: Fix warning i18n #42131
Conversation
@@ -86,7 +83,7 @@ export default function PostCommentsFormEdit( { | |||
warning = sprintf( | |||
/* translators: 1: Post type (i.e. "post", "page") */ | |||
__( | |||
'Post Comments Form block: Comments for this post type (%s) are not enabled.' | |||
'Post Comments Form block: Comments are not enabled for this post type (%s).' |
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 changed the word order in this message to be more consistent with the updated per-item message.
), | ||
postType | ||
warning = __( | ||
'Post Comments Form block: Comments are not enabled for this item.' |
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 used enabled
rather than allowed
to be more consistent with the button label and other messages.
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 also changed the word order a bit since Comments for this item are not enabled
sounded a bit awkward to me.
Size Change: +2 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
I just cherry-picked this PR to the wp/6.0 branch to get it included in the next release: e5ace25 |
What?
Fix an i18n issue with a warning message in the Post Comments Form block.
Why?
It was flagged in Slack the the previous message is problematic to translate into languages with grammatical gender.
How?
By changing the message to
Post Comments Form block: Comments are not enabled for this item.
(Note that the message should really only refer to the current post or page (or CPT), not the entire post type, so it shouldn't read
Comments are not enabled for this post type: %s
. We have separate logic for that.)Testing Instructions
Screenshots or screencast