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
Buttons: Update button labels to sentence case #39692
Conversation
@@ -299,7 +299,7 @@ class Pages extends Component { | |||
return ( | |||
<SectionHeader label={ translate( 'Pages' ) }> | |||
<Button primary compact className="pages__add-page" href={ newPageLink }> | |||
{ translate( 'Add New Page' ) } | |||
{ translate( 'Add new page' ) } |
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.
@@ -324,7 +324,7 @@ class Page extends Component { | |||
return ( | |||
<PopoverMenuItem onClick={ this.copyPage } href={ duplicateUrl }> | |||
<Gridicon icon="clipboard" size={ 18 } /> | |||
{ this.props.translate( 'Copy Page' ) } | |||
{ this.props.translate( 'Copy page' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 22 times:
translate( 'Copying page...' )
ES Score: 6
@@ -333,7 +333,7 @@ class Page extends Component { | |||
const { page, translate } = this.props; | |||
return ( | |||
<PopoverMenuItemClipboard text={ page.URL } onCopy={ this.copyPageLink } icon={ 'link' }> | |||
{ translate( 'Copy Link' ) } | |||
{ translate( 'Copy link' ) } |
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.
@@ -170,14 +170,14 @@ class PurchasesListing extends Component { | |||
return null; | |||
} | |||
|
|||
let label = translate( 'Manage Plan' ); | |||
let label = translate( 'Manage plan' ); |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 26 times:
translate( 'Manage Plans' )
ES Score: 8
@@ -58,7 +58,7 @@ const PlanFeaturesActions = ( { | |||
if ( current && ! isInSignup ) { | |||
upgradeButton = ( | |||
<Button className={ classes } href={ manageHref } disabled={ ! manageHref }> | |||
{ canPurchase ? translate( 'Manage Plan' ) : translate( 'View Plan' ) } | |||
{ canPurchase ? translate( 'Manage plan' ) : translate( 'View plan' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
|
||
if ( isJetpackBackup( purchase ) ) { | ||
label = translate( 'Manage Product' ); | ||
label = translate( 'Manage product' ); |
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.
@@ -18,7 +18,7 @@ import { infoNotice } from 'state/notices/actions'; | |||
function PostActionsEllipsisMenuCopyLink( { onCopyLinkClick, copyLink } ) { | |||
return ( | |||
<PopoverMenuItemClipboard text={ copyLink } onCopy={ onCopyLinkClick } icon={ 'link' }> | |||
{ translate( 'Copy Link' ) } | |||
{ translate( 'Copy link' ) } |
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.
@@ -39,7 +39,7 @@ function PostActionsEllipsisMenuDuplicate( { | |||
return ( | |||
<PopoverMenuItem href={ duplicateUrl } onClick={ onDuplicateClick } icon="clipboard"> | |||
<QueryJetpackModules siteId={ siteId } /> | |||
{ translate( 'Copy Post' ) } | |||
{ translate( 'Copy post' ) } |
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.
@@ -348,7 +348,7 @@ class ThemeShowcase extends React.Component { | |||
<hr /> | |||
) : ( | |||
<Button onClick={ this.toggleShowcase } data-e2e-value="open-themes-button"> | |||
{ translate( 'Show All Themes' ) } | |||
{ translate( 'Show all themes' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
@@ -315,7 +315,7 @@ export class CommentNavigation extends Component { | |||
|
|||
{ hasComments && ( | |||
<Button compact onClick={ toggleBulkMode }> | |||
{ translate( 'Bulk Edit' ) } | |||
{ translate( 'Bulk edit' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 1 times:
translate( 'Bulk Edit', 'NULL', { context: 'NULL'} )
ES Score: 10
See 1 additional suggestions in the PR translation status page
<span className="is-desktop"> | ||
{ this.props.translate( 'Add New', { context: 'Media upload' } ) } | ||
<span className="media-library__upload-button-label"> | ||
{ this.props.translate( 'Add new', { context: 'Media upload' } ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 12 times:
translate( 'Add new', { context: 'new image'} )
ES Score: 9
See 2 additional suggestions in the PR translation status page
ℹ️ This string already exists with the following contexts:
null
(no context)add new media
Block
Customize Changeset
event
file
link
Media upload
page
plugin
post
site
Template
Template Part
theme
user
Would it make sense to reuse one of the above?
@@ -64,7 +64,7 @@ class AdvancedSettings extends React.Component { | |||
loading={ this.props.shouldShowProgress } | |||
isPrimary={ false } | |||
onClick={ this.props.onClickExport } | |||
text={ this.props.translate( 'Export Selected Content' ) } | |||
text={ this.props.translate( 'Export selected content' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
@@ -42,7 +42,7 @@ class ExportCard extends Component { | |||
loading={ this.props.shouldShowProgress } | |||
isPrimary={ false } | |||
onClick={ this.props.exportAll } | |||
text={ translate( 'Export All' ) } | |||
text={ translate( 'Export all' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
@@ -40,7 +39,7 @@ const MarketingToolsHeader: FunctionComponent< Props > = ( { handleButtonClick } | |||
|
|||
<div className="tools__header-button-row"> | |||
<Button onClick={ handleButtonClick } primary> | |||
{ translate( 'Boost My Traffic' ) } | |||
{ translate( 'Boost my traffic' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
@@ -92,7 +92,7 @@ export const MarketingTools: FunctionComponent< Props > = ( { | |||
imagePath="/calypso/images/marketing/social-media-logos.svg" | |||
> | |||
<Button compact onClick={ handleStartSharingClick }> | |||
{ translate( 'Start Sharing' ) } | |||
{ translate( 'Start sharing' ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
@@ -29,7 +29,7 @@ const SettingsSectionHeader = ( { | |||
{ children } | |||
{ showButton && ( | |||
<Button compact primary onClick={ onButtonClick } disabled={ disabled } { ...buttonProps }> | |||
{ isSaving ? translate( 'Saving…' ) : translate( 'Save Settings' ) } | |||
{ isSaving ? translate( 'Saving…' ) : translate( 'Save settings' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 95 times:
translate( 'Save Settings' )
ES Score: 8
Snapshots are updated and client tests should pass. Please give a review when you get a chance and we can land the back-end patch separately if translations are finished before that. @sixhours Thanks for kicking off the patch! I'll keep my eye on it. |
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.
Giving tentative approval here ✅. Please do not merge until:
- Strings are fully translated
- Please prep updates to the Readmes in Calypso / internal messaging so folks are aware of the Sentence case rule
Things that don't block this PR
- D40003-code for customizing the API page/post labels
- Chatting with core to see if sentence case can be adopted in general
- Stray usages. If we happen to miss some and miss translation, just add them in follow up PRs. Any other changes here should also wait for the String Freeze check to pass.
I left those examples intentionally since things like I'll give a quick run through again with all plans and site types on Monday while we wait for strings to translate. |
Thanks for adding a We noticed this at sending the Weekly Kit and held back the translations and semi-manually processed these (and in the course I found an instance of same text that wasn't caught in this PR, so I just committed that change to this one). Long story short: translations are ready without sending them for translation. |
…p-calypso into update/button-sentence-case
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.
E2Es look mostly like timeouts so I think we're okay. This tests pretty well for me @danhauk, let's try 🚢ing!
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/2909838 Thank you @danhauk for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Create more consistency throughout Calypso by standardizing sentence case on button labels.
Why sentence case?
Fixes #38231
Testing Instructions
Sections
Me