mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[2.2] [AttributeBundle] make Add and Delete button translatable in product attribute select type (#19024)
| Q | A |-----------------|----- | Branch? | 2.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes #X | License | MIT **Description** So far it wasnt possible to translate the "Add" and "Delete" button when creating Product Attributes with the "Select" type. <img width="1289" height="884" alt="image" src="https://github.com/user-attachments/assets/1e06ff47-4b88-4663-a7c1-61cca8c67464" />
This commit is contained in:
commit
45e654e831
7 changed files with 14 additions and 1 deletions
|
|
@ -33,6 +33,9 @@ class SelectAttributeConfigurationType extends BaseSelectAttributeConfigurationT
|
||||||
'entry_options' => [
|
'entry_options' => [
|
||||||
'entry_type' => TextType::class,
|
'entry_type' => TextType::class,
|
||||||
],
|
],
|
||||||
|
'button_add_options' => [
|
||||||
|
'label' => 'sylius.form.attribute_type_configuration.select.add_choice',
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@
|
||||||
|
|
||||||
<div {{ sylius_test_html_attribute('choice-key', key) }}>
|
<div {{ sylius_test_html_attribute('choice-key', key) }}>
|
||||||
{{ translations.single_field(form, key, {accordion_id: 'product-attribute-choices-' ~ key}) }}
|
{{ translations.single_field(form, key, {accordion_id: 'product-attribute-choices-' ~ key}) }}
|
||||||
{{ form_row(form.vars.button_delete, sylius_test_form_attribute('choice-removal', key)|sylius_merge_recursive({ label: 'Delete', attr: { class: 'mt-2 mb-4 btn btn-outline-danger' } })) }}
|
{{ form_row(form.vars.button_delete, sylius_test_form_attribute('choice-removal', key)|sylius_merge_recursive({ label: 'sylius.form.attribute_type_configuration.select.delete_choice', attr: { class: 'mt-2 mb-4 btn btn-outline-danger' } })) }}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ sylius:
|
||||||
choose: Bitte wählen Sie eine Option
|
choose: Bitte wählen Sie eine Option
|
||||||
min: Mindestanzahl Einträge
|
min: Mindestanzahl Einträge
|
||||||
max: Maximalanzahl Einträge
|
max: Maximalanzahl Einträge
|
||||||
|
add_choice: Hinzufügen
|
||||||
|
delete_choice: Löschen
|
||||||
text:
|
text:
|
||||||
min: Mindestlänge
|
min: Mindestlänge
|
||||||
max: Maximale Länge
|
max: Maximale Länge
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ sylius:
|
||||||
choose: 'Option wählen'
|
choose: 'Option wählen'
|
||||||
min: 'Min Einträge'
|
min: 'Min Einträge'
|
||||||
max: 'Max Einträge'
|
max: 'Max Einträge'
|
||||||
|
add_choice: 'Hinzufügen'
|
||||||
|
delete_choice: 'Löschen'
|
||||||
text:
|
text:
|
||||||
min: 'Min Länge'
|
min: 'Min Länge'
|
||||||
max: 'Max Länge'
|
max: 'Max Länge'
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ sylius:
|
||||||
choose: 'Option wählen'
|
choose: 'Option wählen'
|
||||||
min: 'Min. Einträge'
|
min: 'Min. Einträge'
|
||||||
max: 'Max. Einträge'
|
max: 'Max. Einträge'
|
||||||
|
add_choice: 'Hinzufügen'
|
||||||
|
delete_choice: 'Löschen'
|
||||||
text:
|
text:
|
||||||
min: 'Min. Länge'
|
min: 'Min. Länge'
|
||||||
max: 'Max. Länge'
|
max: 'Max. Länge'
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ sylius:
|
||||||
choose: Choose an option
|
choose: Choose an option
|
||||||
min: Min entries
|
min: Min entries
|
||||||
max: Max entries
|
max: Max entries
|
||||||
|
add_choice: Add
|
||||||
|
delete_choice: Delete
|
||||||
text:
|
text:
|
||||||
min: Min length
|
min: Min length
|
||||||
max: Max length
|
max: Max length
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ sylius:
|
||||||
choose: 'Choose an option'
|
choose: 'Choose an option'
|
||||||
min: 'Minimum number of entries'
|
min: 'Minimum number of entries'
|
||||||
max: 'Maximum number of entries'
|
max: 'Maximum number of entries'
|
||||||
|
add_choice: 'Add'
|
||||||
|
delete_choice: 'Delete'
|
||||||
text:
|
text:
|
||||||
min: 'Minimum length'
|
min: 'Minimum length'
|
||||||
max: 'Maximum length'
|
max: 'Maximum length'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue