From fcd1dfc814a334893f12afbe78666fbc2a73c3e6 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 16 Jul 2024 13:08:45 +0200 Subject: [PATCH 1/3] Fix String Translation in src/blocks/advanced-form/fields/radio/edit.js --- src/blocks/advanced-form/fields/radio/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/advanced-form/fields/radio/edit.js b/src/blocks/advanced-form/fields/radio/edit.js index e00bb8a9b..eb19bb483 100644 --- a/src/blocks/advanced-form/fields/radio/edit.js +++ b/src/blocks/advanced-form/fields/radio/edit.js @@ -232,7 +232,7 @@ function FieldRadio({ attributes, setAttributes, isSelected, clientId, context, icon="arrow-up" onClick={() => (n === 0 ? undefined : onOptionMoveUp(n))} className="kadence-blocks-list-item__move-up" - label={__('Move Item Up')} + label={__('Move Item Up', 'kadence-blocks')} aria-disabled={n === 0} disabled={n === 0} /> @@ -242,7 +242,7 @@ function FieldRadio({ attributes, setAttributes, isSelected, clientId, context, n + 1 === options.length ? undefined : onOptionMoveDown(n) } className="kadence-blocks-list-item__move-down" - label={__('Move Item Down')} + label={__('Move Item Down', 'kadence-blocks')} aria-disabled={n + 1 === options.length} disabled={n + 1 === options.length} /> @@ -250,7 +250,7 @@ function FieldRadio({ attributes, setAttributes, isSelected, clientId, context, icon="no-alt" onClick={() => removeOptionItem(n)} className="kadence-blocks-list-item__remove" - label={__('Remove Item')} + label={__('Remove Item', 'kadence-blocks')} disabled={1 === options.length} /> From 7d845127f8234191ef29d5933532ab145d932d87 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 16 Jul 2024 13:37:46 +0200 Subject: [PATCH 2/3] Update edit.js --- src/blocks/advanced-form/fields/select/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/advanced-form/fields/select/edit.js b/src/blocks/advanced-form/fields/select/edit.js index 3203ef790..dda101dfd 100644 --- a/src/blocks/advanced-form/fields/select/edit.js +++ b/src/blocks/advanced-form/fields/select/edit.js @@ -227,7 +227,7 @@ function FieldSelect({ attributes, setAttributes, isSelected, clientId, context, icon="arrow-up" onClick={n === 0 ? undefined : onOptionMoveUp(n)} className="kadence-blocks-list-item__move-up" - label={__('Move Item Up')} + label={__('Move Item Up', 'kadence-blocks')} aria-disabled={n === 0} disabled={n === 0} /> @@ -235,7 +235,7 @@ function FieldSelect({ attributes, setAttributes, isSelected, clientId, context, icon="arrow-down" onClick={n + 1 === options.length ? undefined : onOptionMoveDown(n)} className="kadence-blocks-list-item__move-down" - label={__('Move Item Down')} + label={__('Move Item Down', 'kadence-blocks')} aria-disabled={n + 1 === options.length} disabled={n + 1 === options.length} /> @@ -243,7 +243,7 @@ function FieldSelect({ attributes, setAttributes, isSelected, clientId, context, icon="no-alt" onClick={() => removeOptionItem(n)} className="kadence-blocks-list-item__remove" - label={__('Remove Item')} + label={__('Remove Item', 'kadence-blocks')} disabled={1 === options.length} /> From 51ad2e95664af779d5e943387aa936d1a084c0cc Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 16 Jul 2024 13:40:17 +0200 Subject: [PATCH 3/3] Update edit.js --- src/blocks/advanced-form/fields/checkbox/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/advanced-form/fields/checkbox/edit.js b/src/blocks/advanced-form/fields/checkbox/edit.js index f8005268e..d4fe1cb3f 100644 --- a/src/blocks/advanced-form/fields/checkbox/edit.js +++ b/src/blocks/advanced-form/fields/checkbox/edit.js @@ -224,7 +224,7 @@ function FieldCheckbox({ attributes, setAttributes, isSelected, clientId, contex icon="arrow-up" onClick={n === 0 ? undefined : onOptionMoveUp(n)} className="kadence-blocks-list-item__move-up" - label={__('Move Item Up')} + label={__('Move Item Up', 'kadence-blocks')} aria-disabled={n === 0} disabled={n === 0} /> @@ -232,7 +232,7 @@ function FieldCheckbox({ attributes, setAttributes, isSelected, clientId, contex icon="arrow-down" onClick={n + 1 === options.length ? undefined : onOptionMoveDown(n)} className="kadence-blocks-list-item__move-down" - label={__('Move Item Down')} + label={__('Move Item Down', 'kadence-blocks')} aria-disabled={n + 1 === options.length} disabled={n + 1 === options.length} /> @@ -240,7 +240,7 @@ function FieldCheckbox({ attributes, setAttributes, isSelected, clientId, contex icon="no-alt" onClick={() => removeOptionItem(n)} className="kadence-blocks-list-item__remove" - label={__('Remove Item')} + label={__('Remove Item', 'kadence-blocks')} disabled={1 === options.length} />