-
Notifications
You must be signed in to change notification settings - Fork 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
Close Account: Add context for the button text #25587
Conversation
@@ -192,7 +192,7 @@ class AccountSettingsClose extends Component { | |||
{ hasPurchases && | |||
! hasAtomicSites && ( | |||
<Button primary href="/me/purchases"> | |||
{ translate( 'Manage purchases' ) } | |||
{ translate( 'Manage purchases', { context: 'button label' } ) } |
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.
Hi! I've found a possible matching string that has already been translated 31 times:
translate( 'Manage Purchases', { context: 'button label'} )
ES Score: 20
See 2 additional suggestions in the PR translation status page
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
ℹ️ This string already exists with the following contexts:
null
(no context)button label
Would it make sense to reuse one of the above?
@@ -181,7 +181,7 @@ class AccountSettingsClose extends Component { | |||
{ ( isLoading || isDeletePossible ) && ( | |||
<Button scary onClick={ this.handleDeleteClick }> | |||
<Gridicon icon="trash" /> | |||
{ translate( 'Close account' ) } | |||
{ translate( 'Close account', { context: 'button label' } ) } |
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.
Hi! I've found a possible matching string that has already been translated 17 times:
translate( 'Close Account' )
ES Score: 13
See 1 additional suggestion in the PR translation status page
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
ℹ️ This string already exists without a context. Only add a context if the meaning of the string is very specific.
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 LGTM
@akirk @bluefuton are we still planning to 🚢 this one? |
@alisterscott yep! I'll give it a quick rebase and then ship it 🚢 |
I already did |
5fb35da
to
bf7b3c9
Compare
@alisterscott I noticed that created a merge commit (did you use |
Yes sorry - thanks for the rebase |
In #24859 we started to use the phrase
Close Account
in two meanings:This needs differen translations in some languages. Adding a context allows to do this. The
Manage Purchases
has a similar problem which has already been addressed with abutton label
context elsewhere, so we're just re-using this.