Re-use existing string

This commit is contained in:
infinite-persistence 2022-04-18 18:22:26 +08:00
parent ef62ba267d
commit 65789a26ed
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 1 additions and 2 deletions

View file

@ -1056,7 +1056,6 @@
"Edit existing claim instead": "Edit existing claim instead", "Edit existing claim instead": "Edit existing claim instead",
"You already have a claim at %existing_uri%. Publishing will update (overwrite) your existing claim.": "You already have a claim at %existing_uri%. Publishing will update (overwrite) your existing claim.", "You already have a claim at %existing_uri%. Publishing will update (overwrite) your existing claim.": "You already have a claim at %existing_uri%. Publishing will update (overwrite) your existing claim.",
"You already have a pending upload at %existing_uri%.": "You already have a pending upload at %existing_uri%.", "You already have a pending upload at %existing_uri%.": "You already have a pending upload at %existing_uri%.",
"You already have an upload with that name.": "You already have an upload with that name.",
"Save": "Save", "Save": "Save",
"Saved": "Saved", "Saved": "Saved",
"Saving...": "Saving...", "Saving...": "Saving...",

View file

@ -69,7 +69,7 @@ function NameHelpText(props: Props) {
</React.Fragment> </React.Fragment>
); );
} else if (uri && myClaimForUriCaseInsensitive) { } else if (uri && myClaimForUriCaseInsensitive) {
nameHelpText = <div className="error__text">{__('You already have an upload with that name.')}</div>; nameHelpText = <div className="error__text">{__('You already have a claim with this name.')}</div>;
} }
return ( return (