Fix translations strings for form settings

[MAILPOET-2455]
This commit is contained in:
Rostislav Wolny
2019-11-25 16:44:27 +01:00
committed by Jack Kitterhing
parent c2823f3f68
commit f024c57ed7
3 changed files with 5 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ export default () => {
className="mailpoet-form-success-types__control" className="mailpoet-form-success-types__control"
onChange={onSuccessTypeChange} onChange={onSuccessTypeChange}
selected={settings.on_success || 'message'} selected={settings.on_success || 'message'}
label={MailPoet.I18n.t('settingsAfterSubmit')} label={`${MailPoet.I18n.t('settingsAfterSubmit')}`}
options={[ options={[
{ {
label: MailPoet.I18n.t('settingsShowMessage'), label: MailPoet.I18n.t('settingsShowMessage'),

View File

@@ -45,7 +45,7 @@ export default () => {
const addFormPhpIframeHint = ReactStringReplace( const addFormPhpIframeHint = ReactStringReplace(
MailPoet.I18n.t('addFormPhpIframeHint'), MailPoet.I18n.t('addFormPhpIframeHint'),
/%s(.*?)%s/g, /\[link\](.*?)\[\/link\]/g,
(match) => { (match) => {
if (match === 'PHP') { if (match === 'PHP') {
return (<a key="exportPHP" href="#" onClick={(e) => exportLinkClicked(e, 'php')}>{match}</a>); return (<a key="exportPHP" href="#" onClick={(e) => exportLinkClicked(e, 'php')}>{match}</a>);

View File

@@ -34,9 +34,9 @@
'formSaved': __('Form saved.'), 'formSaved': __('Form saved.'),
'addFormWidgetHint': __('Add this form to your sidebar or footer on the [link]Widgets page[/link].'), 'addFormWidgetHint': __('Add this form to your sidebar or footer on the [link]Widgets page[/link].'),
'addFormShortcodeHint': __('Copy and paste this [link]shortcode[/link] on to a post or page.'), 'addFormShortcodeHint': __('Copy and paste this [link]shortcode[/link] on to a post or page.'),
'addFormPhpIframeHint': __('%sPHP%s and %siFrame%s versions are also available.'), 'addFormPhpIframeHint': __('[link]PHP[/link] and [link]iFrame[/link] versions are also available.'),
'settingsListLabel': __('This form adds the subscribers to these lists:'), 'settingsListLabel': __('This form adds the subscribers to these lists'),
'settingsAfterSubmit': __('After submit...'), 'settingsAfterSubmit': __('After submit'),
'settingsShowMessage': __('Show message'), 'settingsShowMessage': __('Show message'),
'settingsGoToPage': __('Go to Page'), 'settingsGoToPage': __('Go to Page'),
'settingsPleaseSelectList': __('Please select a list') 'settingsPleaseSelectList': __('Please select a list')