diff --git a/includes/admin/settings/class-settings-advanced.php b/includes/admin/settings/class-settings-advanced.php index af555eb902..c487332496 100644 --- a/includes/admin/settings/class-settings-advanced.php +++ b/includes/admin/settings/class-settings-advanced.php @@ -177,7 +177,7 @@ public function get_settings() { ], ], [ - 'name' => 'GiveWP Cache', + 'name' => __( 'GiveWP Cache', 'give' ), 'id' => 'give-clear-cache', 'buttonTitle' => __( 'Clear Cache', 'give' ), 'desc' => __( 'Click this button if you want to clear GiveWP\'s cache. The plugin stores common settings and queries in cache to optimize performance. Clearing cache will remove and begin rebuilding these saved queries.', 'give' ), diff --git a/src/DonationForms/V2/resources/components/DonationFormsListTable.tsx b/src/DonationForms/V2/resources/components/DonationFormsListTable.tsx index de7efbe544..2b9ffbd681 100644 --- a/src/DonationForms/V2/resources/components/DonationFormsListTable.tsx +++ b/src/DonationForms/V2/resources/components/DonationFormsListTable.tsx @@ -261,7 +261,7 @@ export default function DonationFormsListTable() { className={`button button-secondary ${styles.button} ${styles.buttonSecondary}`} onClick={showLegacyDonationForms} > - {__('Switch to Legacy View')} + {__('Switch to Legacy View', 'give')} '0', - 'text' => 'Any', + 'text' => __('Any', 'give'), ], ], $options); } diff --git a/src/Donors/DonorsAdminPage.php b/src/Donors/DonorsAdminPage.php index c1593c575e..5e46d7f209 100644 --- a/src/Donors/DonorsAdminPage.php +++ b/src/Donors/DonorsAdminPage.php @@ -104,7 +104,7 @@ public function getForms() return array_merge([ [ 'value' => '0', - 'text' => 'Any', + 'text' => __('Any', 'give'), ], ], $options); } diff --git a/src/FormBuilder/resources/js/form-builder/src/components/EmbedForm/index.tsx b/src/FormBuilder/resources/js/form-builder/src/components/EmbedForm/index.tsx index b86663f06a..9d5334bb4c 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/EmbedForm/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/EmbedForm/index.tsx @@ -86,8 +86,8 @@ export default function EmbedFormModal({handleClose}: EmbedFormModalProps) { }, []); const postOptions = [ - {label: 'Page', value: 'page'}, - {label: 'Post', value: 'post'}, + {label: __('Page', 'give'), value: 'page'}, + {label: __('Post', 'give'), value: 'post'}, ]; const displayStyles = [ diff --git a/src/FormBuilder/resources/js/form-builder/src/promos/recurring-donations.tsx b/src/FormBuilder/resources/js/form-builder/src/promos/recurring-donations.tsx index c78823c6db..52bc464d8a 100644 --- a/src/FormBuilder/resources/js/form-builder/src/promos/recurring-donations.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/promos/recurring-donations.tsx @@ -19,8 +19,8 @@ const RecurringDonationsPromo = () => { {__('Provide donors the option of making flexible recurring donations.', 'give')}
- - + +
} diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/email/template-options/settings.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/email/template-options/settings.tsx index 8926d9ef7c..4a77720dc1 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/email/template-options/settings.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/email/template-options/settings.tsx @@ -62,7 +62,7 @@ const EmailTemplateSettings = ({notification, templateTagsRef, settings, setSett updateEmailTemplateOption('email_subject', value)} value={option.email_subject || config.defaultValues.email_subject} /> @@ -88,8 +88,8 @@ const EmailTemplateSettings = ({notification, templateTagsRef, settings, setSett updateEmailTemplateOption('email_header', value)} // @ts-ignore value={option.email_header || config.defaultValues.email_header} @@ -100,12 +100,12 @@ const EmailTemplateSettings = ({notification, templateTagsRef, settings, setSett updateEmailTemplateOption('email_content_type', value)} - label={__('Email content type', 'givewp')} - help={__('Choose email type', 'givewp')} + label={__('Email content type', 'give')} + help={__('Choose email type', 'give')} value={option.email_content_type || config.defaultValues.email_content_type} options={[ - {label: __('HTML', 'givewp'), value: 'text/html'}, - {label: __('Plain', 'givewp'), value: 'text/plain'}, + {label: __('HTML', 'give'), value: 'text/html'}, + {label: __('Plain', 'give'), value: 'text/plain'}, ]} /> @@ -141,7 +141,7 @@ const EmailTemplateSettings = ({notification, templateTagsRef, settings, setSett > {config.supportsRecipients && (
- + {recipients.map((recipientEmail: string, index) => { return (
  • updateEmailTemplateOption('recipient', [...recipients, ''])} > - {__('Add email', 'givewp')} + {__('Add email', 'give')}
  • @@ -184,10 +184,10 @@ const EmailTemplateSettings = ({notification, templateTagsRef, settings, setSett {!config.supportsRecipients && ( null} value="{donor_email}" diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/general/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/general/index.tsx index 302a90fb8c..09da75c226 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/general/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/group-email-settings/general/index.tsx @@ -36,11 +36,11 @@ export default function EmailGeneralSettings({ settings, setSettings }) { > setSettings({ emailTemplate })} @@ -48,10 +48,10 @@ export default function EmailGeneralSettings({ settings, setSettings }) { setSettings({ emailFromName })} @@ -59,10 +59,10 @@ export default function EmailGeneralSettings({ settings, setSettings }) { setSettings({ emailFromEmail })} diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/group-general/form-summary/index.jsx b/src/FormBuilder/resources/js/form-builder/src/settings/group-general/form-summary/index.jsx index 6a5bd56f85..fbe3ac4f7f 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/group-general/form-summary/index.jsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/group-general/form-summary/index.jsx @@ -28,7 +28,7 @@ const FormSummarySettings = ({settings, setSettings}) => { <> { !isPublished && setSettings({pageSlug: cleanForSlug(formTitle)}); @@ -59,7 +59,7 @@ const FormSummarySettings = ({settings, setSettings}) => { {isExcerptEnabled && ( '0', - 'text' => 'Any', + 'text' => __('Any', 'give'), ] ], $options); } diff --git a/src/Subscriptions/resources/components/SubscriptionsListTable.tsx b/src/Subscriptions/resources/components/SubscriptionsListTable.tsx index 26fe0ef876..90d1ffc8bd 100644 --- a/src/Subscriptions/resources/components/SubscriptionsListTable.tsx +++ b/src/Subscriptions/resources/components/SubscriptionsListTable.tsx @@ -141,7 +141,7 @@ export default function SubscriptionsListTable() { listTableBlankSlate={ListTableBlankSlate} > );