Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed domain names #30

Merged
merged 4 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
<target state="new">Delete</target>
<note>key: ezmatrix.remove</note>
</trans-unit>
<trans-unit id="8422049ef51bbcd967ea5578aee3ed094edd252c" resname="field.column.add_new">
<source>Add</source>
<target state="new">Add</target>
<note>key: field.column.add_new</note>
</trans-unit>
<trans-unit id="ba5b5f28d4530d7374b45639acfe2b7ed6277497" resname="field.column.delete">
<source>Delete</source>
<target state="new">Delete</target>
<note>key: field.column.delete</note>
</trans-unit>
<trans-unit id="fa41ae6cab6d74c6548f4052c02c0c5129a27f1d" resname="field.column.identifier">
<source>Identifier</source>
<target state="new">Identifier</target>
Expand Down
21 changes: 0 additions & 21 deletions src/bundle/Resources/translations/messages.en.xliff

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% trans_default_domain 'matrix_fieldtype' %}
{% trans_default_domain 'ibexa_matrix_fieldtype' %}

{% block ezplatform_fieldtype_ezmatrix_widget %}
{% set readonly = attr.readonly|default(false) %}
Expand Down Expand Up @@ -29,7 +29,7 @@
} %}
{% block header %}
{% embed '@ibexadesign/ui/component/table/table_header.html.twig' %}
{% trans_default_domain 'matrix_fieldtype' %}
{% trans_default_domain 'ibexa_matrix_fieldtype' %}

{% block actions %}
<button
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% trans_default_domain 'matrix_fieldtype' %}
{% trans_default_domain 'ibexa_matrix_fieldtype' %}

{% block ezmatrix_field %}
{% set columnsSettings = fieldSettings['columns'] %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% trans_default_domain 'matrix_fieldtype' %}
{% trans_default_domain 'ibexa_matrix_fieldtype' %}

{% set fieldtype_name = 'ezmatrix.name'|trans({}, 'fieldtypes')|desc('Matrix') %}
{% set fieldtype_name = 'ezmatrix.name'|trans({}, 'ibexa_fieldtypes')|desc('Matrix') %}

{% block ezmatrix_field_definition_edit %}
<div class="ibexa-matrix-settings__minimum-rows">
Expand Down Expand Up @@ -60,6 +60,7 @@
} %}
{% block header %}
{% embed '@ibexadesign/ui/component/table/table_header.html.twig' %}
{% trans_default_domain 'ibexa_matrix_fieldtype' %}
{% block actions %}
<button type="button" class="btn ibexa-btn ibexa-btn--tertiary ibexa-btn--small ibexa-btn--add-column">
<svg class="ibexa-icon ibexa-icon--small ibexa-icon--create">
Expand Down
4 changes: 2 additions & 2 deletions src/lib/FieldType/Mapper/MatrixFormMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
'required' => false,
'property_path' => 'fieldSettings[minimum_rows]',
'label' => /** @Desc("Minimum number of rows") */ 'field_definition.ezmatrix.minimum_rows',
'translation_domain' => 'matrix_fieldtype',
'translation_domain' => 'ibexa_matrix_fieldtype',
'disabled' => $isTranslation,
])
->add('columns', CollectionType::class, [
Expand All @@ -52,7 +52,7 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
'required' => false,
'property_path' => 'fieldSettings[columns]',
'label' => /** @Desc("Columns") */ 'field_definition.ezmatrix.columns',
'translation_domain' => 'matrix_fieldtype',
'translation_domain' => 'ibexa_matrix_fieldtype',
'disabled' => $isTranslation,
]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/ColumnType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
*/
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefault('translation_domain', 'matrix_fieldtype');
$resolver->setDefault('translation_domain', 'ibexa_matrix_fieldtype');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/MatrixFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function configureOptions(OptionsResolver $resolver): void
$resolver->setDefined(['columns', 'minimum_rows']);
$resolver->addAllowedTypes('columns', 'array');
$resolver->addAllowedTypes('minimum_rows', 'integer');
$resolver->setDefault('translation_domain', 'matrix_fieldtype');
$resolver->setDefault('translation_domain', 'ibexa_matrix_fieldtype');
}

/**
Expand Down
Loading