Skip to content

Commit 9f352d6

Browse files
committed
Added translations
1 parent 4106cd7 commit 9f352d6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/bundle/Resources/translations/ibexa_matrix_fieldtype.en.xliff

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
<target state="new">Delete</target>
2727
<note>key: field.column.delete</note>
2828
</trans-unit>
29+
<trans-unit id="5e712908b00d328e0ae52c2b063ea2186335e029" resname="field.column.error.quantity">
30+
<source>At least one column is required for matrix field.</source>
31+
<target state="new">At least one column is required for matrix field.</target>
32+
<note>key: field.column.error.quantity</note>
33+
</trans-unit>
2934
<trans-unit id="fa41ae6cab6d74c6548f4052c02c0c5129a27f1d" resname="field.column.identifier">
3035
<source>Identifier</source>
3136
<target state="new">Identifier</target>

src/bundle/Resources/views/themes/admin/matrix_fieldtype/field_types.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333

3434
{{ form_label(form.columns, null, { 'label_attr': { 'class': 'ibexa-label' } }) }}
3535
{{ form_errors(form.columns) }}
36+
3637
{% set body_rows = [] %}
38+
3739
{% for column in form.columns %}
3840
{% set col_checkbox %}
3941
<div class="form-check">
@@ -97,7 +99,7 @@
9799
<svg class="ibexa-icon ibexa-icon--small ibexa-form-error__icon">
98100
<use xlink:href="{{ ibexa_icon_path('notice') }}"></use>
99101
</svg>
100-
At least one column is required for matrix field.
102+
{{ 'field.column.error.quantity'|trans|desc('At least one column is required for matrix field.') }}
101103
</em>
102104
</div>
103105
</div>

0 commit comments

Comments
 (0)