From fe4fb9a81ff065ec7357ec751c11cf7bd69ebef1 Mon Sep 17 00:00:00 2001 From: Artur Piszek Date: Thu, 30 May 2019 10:08:55 +0200 Subject: [PATCH] Memberships: Rename to "Recurring Payments" (#12488) This renames the membership block to recurring payments button. Associated filename changes go with this. * Change copy of Memberships to Recurring Payments * few fixes * Change block id to recurring-payment-button * Rename dir * Block id change * Reorder * Settle on one capitalization --- .../edit.jsx | 33 ++++++++++--------- .../editor.js | 0 .../editor.scss | 0 .../index.js | 4 +-- .../recurring-payments.php} | 2 +- .../view.js | 4 +-- .../view.scss | 0 extensions/index.json | 2 +- .../memberships/class-jetpack-memberships.php | 4 +-- 9 files changed, 26 insertions(+), 23 deletions(-) rename extensions/blocks/{membership-button => recurring-payments}/edit.jsx (92%) rename extensions/blocks/{membership-button => recurring-payments}/editor.js (100%) rename extensions/blocks/{membership-button => recurring-payments}/editor.scss (100%) rename extensions/blocks/{membership-button => recurring-payments}/index.js (93%) rename extensions/blocks/{membership-button/membership-button.php => recurring-payments/recurring-payments.php} (93%) rename extensions/blocks/{membership-button => recurring-payments}/view.js (95%) rename extensions/blocks/{membership-button => recurring-payments}/view.scss (100%) diff --git a/extensions/blocks/membership-button/edit.jsx b/extensions/blocks/recurring-payments/edit.jsx similarity index 92% rename from extensions/blocks/membership-button/edit.jsx rename to extensions/blocks/recurring-payments/edit.jsx index 39f956f5de4f4..4565db9875feb 100644 --- a/extensions/blocks/membership-button/edit.jsx +++ b/extensions/blocks/recurring-payments/edit.jsx @@ -196,7 +196,7 @@ class MembershipsButtonEdit extends Component { isLarge onClick={ () => this.setState( { addingMembershipAmount: PRODUCT_FORM } ) } > - { __( 'Add Memberships Amounts', 'jetpack' ) } + { __( 'Add a Recurring Payments Plan', 'jetpack' ) } ); } @@ -306,8 +306,8 @@ class MembershipsButtonEdit extends Component { renderDisclaimer = () => { return (
- - { __( 'Read more about memberships and related fees.', 'jetpack' ) } + + { __( 'Read more about Recurring Payments and related fees.', 'jetpack' ) }
); @@ -321,7 +321,7 @@ class MembershipsButtonEdit extends Component { ( { @@ -331,8 +331,8 @@ class MembershipsButtonEdit extends Component { } ) ) } /> - - + + { __( 'See your earnings, subscriber list, and products.', 'jetpack' ) } @@ -358,11 +358,14 @@ class MembershipsButtonEdit extends Component { { this.state.shouldUpgrade && ( } - label={ __( 'Memberships', 'jetpack' ) } + label={ __( 'Recurring Payments', 'jetpack' ) } notices={ notices } >
- { __( "You'll need to upgrade your plan to use the Membership Button.", 'jetpack' ) } + { __( + "You'll need to upgrade your plan to use the Recurring Payments button.", + 'jetpack' + ) }