Skip to content

Commit

Permalink
Refactor: replace custom block editor text domain with give (#7017)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Waldstein <jonwaldstein@jons-air.mynetworksettings.com>
  • Loading branch information
jonwaldstein and Jon Waldstein authored Oct 10, 2023
1 parent a34dfd4 commit 01814d9
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Edit({attributes, setAttributes}: BlockEditProps<any>) {
value={content}
allowedFormats={['core/bold', 'core/italic', 'core/link']}
onChange={(content) => setAttributes({content})}
placeholder={__('Enter some text', 'custom-block-editor')}
placeholder={__('Enter some text', 'give')}
/>
<InspectorControls>
<PanelBody title={__('Attributes', 'give')} initialOpen={true}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {ElementBlock} from '@givewp/form-builder/types/block';
import Edit from './Edit';

const settings: ElementBlock['settings'] = {
title: __('Paragraph', 'custom-block-editor'),
title: __('Paragraph', 'give'),
description: 'Place a styled paragraph in your form.',
category: 'content',
supports: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const {

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Donation Amount and Levels', 'custom-block-editor'),
title: __('Donation Amount and Levels', 'give'),
description: __('The interface for donors to specify the amount they want to donate.', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Path, SVG} from '@wordpress/components';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Billing Address', 'custom-block-editor'),
title: __('Billing Address', 'give'),
description: __('Collects the donor billing address with display options.', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Path, SVG} from '@wordpress/components';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Company', 'custom-block-editor'),
title: __('Company', 'give'),
description: __('Donors can input their company name', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Path, SVG} from '@wordpress/components';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Donor Name', 'custom-block-editor'),
title: __('Donor Name', 'give'),
description: __('Collects the donor name with display options.', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Path, SVG} from '@wordpress/components';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Email', 'custom-block-editor'),
title: __('Email', 'give'),
description: __('The required email field for donors to enter their email address.', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const login: FieldBlock = {
settings: {
...defaultSettings,
icon: BlockIcon,
title: __('User Login', 'custom-block-editor'),
title: __('User Login', 'give'),
description: __('...', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Icon from './Icon';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Payment Gateways', 'custom-block-editor'),
title: __('Payment Gateways', 'give'),
description: __('Display payment gateway options for donors to process their donation.', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {BlockAttributes, BlockConfiguration} from '@wordpress/blocks';
import Edit from './Edit';

const defaultSettings: BlockConfiguration = {
title: __('Field', 'custom-block-editor'),
title: __('Field', 'give'),
category: 'input',
supports: {
html: false, // Removes support for an HTML mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import defaultSettings from '../settings';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Terms and conditions', 'custom-block-editor'),
title: __('Terms and conditions', 'give'),
description: __('Donors can accept the terms and conditions', 'give'),
supports: {
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Path, SVG} from '@wordpress/components';

const settings: FieldBlock['settings'] = {
...defaultSettings,
title: __('Text Field', 'custom-block-editor'),
title: __('Text Field', 'give'),
category: 'custom',
description: __('A custom text field that donors can use.', 'give'),
supports: {
Expand Down

0 comments on commit 01814d9

Please sign in to comment.