diff --git a/src/templates/elementactions/BulkEdit/_edit.twig b/src/templates/elementactions/BulkEdit/_edit.twig index 06b3e6c..2244a5a 100644 --- a/src/templates/elementactions/BulkEdit/_edit.twig +++ b/src/templates/elementactions/BulkEdit/_edit.twig @@ -11,10 +11,10 @@
{{ "Cancel"|t('venveo-bulk-edit') }}
-
+
{% else %} -

{{ "It doesn't look like there are any fields that support bulk editing on these elements."|t('venveo-bulk-edit') }}

+

{{ "It doesn\'t look like there are any fields that support bulk editing on these elements."|t('venveo-bulk-edit') }}

{{ "Cancel"|t('venveo-bulk-edit') }}
diff --git a/src/templates/elementactions/BulkEdit/_fields.twig b/src/templates/elementactions/BulkEdit/_fields.twig index 76463eb..72bf8c2 100644 --- a/src/templates/elementactions/BulkEdit/_fields.twig +++ b/src/templates/elementactions/BulkEdit/_fields.twig @@ -2,15 +2,20 @@

{{ "Select Fields"|t('venveo-bulk-edit') }}

-

Editing {{ selectedTotal }} elements on site - {{ site.name }} ({{ site.language }})

+

+ {{ "Editing {total} elements on site {site} ({language})"|t('venveo-bulk-edit', params = { + site: site.name, + language: site.language, + total: selectedTotal + }) }} +

{% if fieldWrappers|length %}
{{ forms.checkbox({ id: 'bulk-edit-select-all', checked: selectAllChecked, - label: 'Select all ' ~ selectAllTotal ~ ' elements matching current filters', + label: 'Select all {total} elements matching current filters'|t('venveo-bulk-edit', params = {total: selectAllTotal}), name: 'selectAll', }) }}
@@ -20,22 +25,22 @@ - Field Name + {{ 'Field Name'|t('venveo-bulk-edit') }} - Field Handle + {{ 'Field Handle'|t('venveo-bulk-edit') }} - Edit + {{ 'Edit'|t('venveo-bulk-edit') }} - Strategy + {{ 'Strategy'|t('venveo-bulk-edit') }} @@ -82,12 +87,12 @@ {% endif %} {% else %} -

These elements have no associated fields.

+

{{ 'These elements have no associated fields.'|t('venveo-bulk-edit') }}

{% endif %}
-
Cancel
- {{ "Cancel"|t('venveo-bulk-edit') }}
+
diff --git a/src/translations/en/bulk-edit.php b/src/translations/en/bulk-edit.php deleted file mode 100644 index 92d37e0..0000000 --- a/src/translations/en/bulk-edit.php +++ /dev/null @@ -1,17 +0,0 @@ - 'Cancel', + 'Continue' => 'Continue', + + // Strategies + 'Add' => 'Add', + 'Divide' => 'Divide', + 'Merge' => 'Merge', + 'Multiply' => 'Multiply', + 'Replace' => 'Replace', + 'Subtract' => 'Subtract', + + // User Permissions + 'Bulk Edit Entries' => 'Bulk Edit Entries', + 'Bulk Edit Assets' => 'Bulk Edit Assets', + 'Bulk Edit Categories' => 'Bulk Edit Categories', + 'Bulk Edit Users' => 'Bulk Edit Users', + 'Bulk Edit Products' => 'Bulk Edit Products', + 'Bulk Edit' => 'Bulk Edit', + + // Select Fields Modal + 'Select Fields' => 'Select Fields', + 'Editing {total} elements on site {site} ({language})' => 'Editing {total} elements on site {site} ({language})', + 'Field Name' => 'Field Name', + 'Field Handle' => 'Field Handle', + 'Edit' => 'Edit', + 'Strategy' => 'Strategy', + 'These elements have no associated fields.' => 'These elements have no associated fields.', + 'Select all {total} elements matching current filters' => 'Select all {total} elements matching current filters', + + // Edit Fields Modal + 'It doesn\'t look like there are any fields that support bulk editing on these elements.' => 'It doesn\'t look like there are any fields that support bulk editing on these elements.', + 'Save {totalElements} Elements' => 'Save {totalElements} Elements', +];