-
Notifications
You must be signed in to change notification settings - Fork 834
Fixed concatenated strings and added context where needed. #6410
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
Nice, thank you. |
isCompact={ true } | ||
> | ||
{ __( 'Updates Needed' ) } | ||
{ __( 'Updates Needed', { context: 'Short warning message' } ) } |
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.
We agreed on using sentence case instead of title case
<DashItem className="jp-connection-type" label={ __( 'Site Connection' ) }> | ||
<DashItem | ||
className="jp-connection-type" | ||
label={ __( 'Site Connection', { context: 'Dashboard widget header' } ) } |
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.
Use sentence case
<DashItem className="jp-connection-type" label={ __( 'Account Connection' ) }> | ||
<DashItem | ||
className="jp-connection-type" | ||
label={ __( 'Account Connection', { context: 'Dashboard widget header' } ) } |
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.
Use sentence case
_inc/client/pro-status/index.jsx
Outdated
isCompact={ true } | ||
> | ||
{ __( 'Invalid Key' ) } | ||
{ __( 'Invalid Key', { context: 'Short warning message about an invalid key being used for Akismet.' } ) } |
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.
Use sentence case
@eliorivero updated to use sentence case. Merge if LGTY |
Fixes some common problems with i18n strings. No major changes here, but still creating a PR to raise awareness about proper use of translation functions :)