Skip to content

Commit

Permalink
IBX-6415: Renamed domain names (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk authored Sep 5, 2023
1 parent 4b5215f commit d136cd6
Show file tree
Hide file tree
Showing 24 changed files with 148 additions and 137 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,111 @@
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="0245eebf28779a38e0e2d072dfe6a288625b2c52" resname="content.field_type.binary_base.file">
<source>File</source>
<target state="new">File</target>
<note>key: content.field_type.binary_base.file</note>
</trans-unit>
<trans-unit id="1bd4c3b865897e29623c2b4d3a42d4fc1df85c9f" resname="content.field_type.binary_base.remove">
<source>Remove</source>
<target state="new">Remove</target>
<note>key: content.field_type.binary_base.remove</note>
</trans-unit>
<trans-unit id="db5d6f82fe5ba6f40d1d159dca89c659c76aad06" resname="content.field_type.ezauthor.email">
<source>Email</source>
<target state="new">Email</target>
<note>key: content.field_type.ezauthor.email</note>
</trans-unit>
<trans-unit id="05fe48833d61c38f4c532c34c4b6fdad323e1fe1" resname="content.field_type.ezauthor.name">
<source>Name</source>
<target state="new">Name</target>
<note>key: content.field_type.ezauthor.name</note>
</trans-unit>
<trans-unit id="79843ce578133501bb420c52cd410a113dcfaefb" resname="content.field_type.ezgmaplocation.address">
<source>Address</source>
<target state="new">Address</target>
<note>key: content.field_type.ezgmaplocation.address</note>
</trans-unit>
<trans-unit id="2fcb1cae76dae0c5ddda6446822bf2d656e84601" resname="content.field_type.ezgmaplocation.latitude">
<source>Latitude</source>
<target state="new">Latitude</target>
<note>key: content.field_type.ezgmaplocation.latitude</note>
</trans-unit>
<trans-unit id="f598e2bedb749c004e232b9c3f0cffbc08f9c491" resname="content.field_type.ezgmaplocation.longitude">
<source>Longitude</source>
<target state="new">Longitude</target>
<note>key: content.field_type.ezgmaplocation.longitude</note>
</trans-unit>
<trans-unit id="aa904d94a0f6df2084d669e82dac178189509aab" resname="content.field_type.ezimage.alternative_text">
<source>Alternative text</source>
<target state="new">Alternative text</target>
<note>key: content.field_type.ezimage.alternative_text</note>
</trans-unit>
<trans-unit id="5da12c12b4df6790c55fb4d0b11f72fa621b0d1f" resname="content.field_type.ezimageasset.alternative_text">
<source>Alternative text</source>
<target state="new">Alternative text</target>
<note>key: content.field_type.ezimageasset.alternative_text</note>
</trans-unit>
<trans-unit id="7162d22b1be8aaa634e57fa94cc2664026be4390" resname="content.field_type.ezmedia.autoplay">
<source>Autoplay</source>
<target state="new">Autoplay</target>
<note>key: content.field_type.ezmedia.autoplay</note>
</trans-unit>
<trans-unit id="f0176a5e197c6c207e09affb1a027db2ab48a506" resname="content.field_type.ezmedia.display_controls">
<source>Display controls</source>
<target state="new">Display controls</target>
<note>key: content.field_type.ezmedia.display_controls</note>
</trans-unit>
<trans-unit id="eb3b924b6a2d94344ea5e1e51636ef5b92a7a57a" resname="content.field_type.ezmedia.height">
<source>Height</source>
<target state="new">Height</target>
<note>key: content.field_type.ezmedia.height</note>
</trans-unit>
<trans-unit id="48e4eb02443e58b9ff501ca03bdc4008e842eba4" resname="content.field_type.ezmedia.loop">
<source>Loop</source>
<target state="new">Loop</target>
<note>key: content.field_type.ezmedia.loop</note>
</trans-unit>
<trans-unit id="e5940ee516f3edb1d09e7ac4eed4fe7a28d3cacd" resname="content.field_type.ezmedia.width">
<source>Width</source>
<target state="new">Width</target>
<note>key: content.field_type.ezmedia.width</note>
</trans-unit>
<trans-unit id="25850f96dbb0457a35063e29e92a26cbba2de07d" resname="content.field_type.ezurl.link">
<source>URL</source>
<target state="new">URL</target>
<note>key: content.field_type.ezurl.link</note>
</trans-unit>
<trans-unit id="e6ca454559e2a762b64c43847db1e227b3077540" resname="content.field_type.ezurl.text">
<source>Text</source>
<target state="new">Text</target>
<note>key: content.field_type.ezurl.text</note>
</trans-unit>
<trans-unit id="7a3eb3ea13db1c9d6a0bd64c7d249a45e7b83b52" resname="content.field_type.ezuser.email">
<source>Email</source>
<target state="new">Email</target>
<note>key: content.field_type.ezuser.email</note>
</trans-unit>
<trans-unit id="8ac4ec40153c80fd39d2051802e30ebffb6f1fe1" resname="content.field_type.ezuser.enabled">
<source>Enabled</source>
<target state="new">Enabled</target>
<note>key: content.field_type.ezuser.enabled</note>
</trans-unit>
<trans-unit id="4c65e5d17516c19e311161e374bbd39f053b5e6b" resname="content.field_type.ezuser.password">
<source>Password</source>
<target state="new">Password</target>
<note>key: content.field_type.ezuser.password</note>
</trans-unit>
<trans-unit id="d2fe533f4032896195d524038c3abeb2209adece" resname="content.field_type.ezuser.password_confirm">
<source>Confirm password</source>
<target state="new">Confirm password</target>
<note>key: content.field_type.ezuser.password_confirm</note>
</trans-unit>
<trans-unit id="d1f5c5fcee7eb206e496dd5073b0f95427431a1c" resname="content.field_type.ezuser.username">
<source>Username</source>
<target state="new">Username</target>
<note>key: content.field_type.ezuser.username</note>
</trans-unit>
<trans-unit id="1d777459cd2f508bdb4676d48eaeee62e11d3009" resname="content_forms.relation.location_type">
<source>Select Starting Location</source>
<target state="new">Select Starting Location</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<body>
<trans-unit id="040f06fd774092478d450774f5ba30c5da78acc8" resname="content">
<source>Content</source>
<target>Content</target>
<target state="new">Content</target>
<note>key: content</note>
</trans-unit>
<trans-unit id="4c24b2612e94e2ae622e54397663f2b7bf0a2e17" resname="metadata">
<source>Metadata</source>
<target>Metadata</target>
<target state="new">Metadata</target>
<note>key: metadata</note>
</trans-unit>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@

use Ibexa\Contracts\ContentForms\Content\Form\Provider\GroupedContentFormFieldsProviderInterface;
use Ibexa\Core\Helper\FieldsGroups\FieldsGroupsList;
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\TranslationContainerInterface;

final class GroupedContentFormFieldsProvider implements GroupedContentFormFieldsProviderInterface
final class GroupedContentFormFieldsProvider implements GroupedContentFormFieldsProviderInterface, TranslationContainerInterface
{
/** @var \Ibexa\Core\Helper\FieldsGroups\FieldsGroupsList */
private $fieldsGroupsList;
Expand All @@ -37,4 +39,12 @@ public function getGroupedFields(array $fieldsDataForm): array

return $groupedFields;
}

public static function getTranslationMessages(): array
{
return [
Message::create('content', 'ibexa_fields_groups')->setDesc('Content'),
Message::create('metadata', 'ibexa_fields_groups')->setDesc('Metadata'),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function configureOptions(OptionsResolver $resolver)
{
$resolver
->setDefaults([
'translation_domain' => 'ezplatform_content_forms_content',
'translation_domain' => 'ibexa_content_forms_content',
]);
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/Form/Type/Content/BaseContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Ibexa\ContentForms\Form\Type\Content;

use JMS\TranslationBundle\Annotation\Desc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
Expand Down Expand Up @@ -60,7 +61,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
public function configureOptions(OptionsResolver $resolver)
{
$resolver
->setDefaults(['translation_domain' => 'ezplatform_content_forms_content'])
->setDefaults(['translation_domain' => 'ibexa_content_forms_content'])
->setRequired(['languageCode', 'mainLanguageCode']);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/ContentDraftCreateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)

public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(['translation_domain' => 'ezplatform_content_forms_content']);
$resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_content']);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/Content/ContentEditType.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'hidden' => true,
'formnovalidate' => 'formnovalidate',
],
'translation_domain' => 'content_edit',
'translation_domain' => 'ibexa_content_edit',
]);
}

Expand All @@ -82,7 +82,7 @@ public function configureOptions(OptionsResolver $resolver)
'drafts_enabled' => false,
'autosave_enabled' => true,
'data_class' => ContentStruct::class,
'translation_domain' => 'ezplatform_content_forms_content',
'translation_domain' => 'ibexa_content_forms_content',
'intent' => 'update',
]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/ContentFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function configureOptions(OptionsResolver $resolver)
'contentCreateStruct' => null,
'contentUpdateStruct' => null,
'data_class' => FieldData::class,
'translation_domain' => 'ezplatform_content_forms_content',
'translation_domain' => 'ibexa_content_forms_content',
])
->setRequired(['languageCode', 'mainLanguageCode']);
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Form/Type/FieldType/Author/AuthorEntryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace Ibexa\ContentForms\Form\Type\FieldType\Author;

use Ibexa\Core\FieldType\Author\Author;
use JMS\TranslationBundle\Annotation\Desc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
Expand Down Expand Up @@ -75,7 +76,7 @@ public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => Author::class,
'translation_domain' => 'ezplatform_content_forms_fieldtype',
'translation_domain' => 'ibexa_content_forms_fieldtype',
]);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Form/Type/FieldType/BinaryBaseFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace Ibexa\ContentForms\Form\Type\FieldType;

use Ibexa\ContentForms\ConfigResolver\MaxUploadSize;
use JMS\TranslationBundle\Annotation\Desc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)

public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(['translation_domain' => 'ezplatform_content_forms_fieldtype']);
$resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/BinaryFileFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getParent()

public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(['translation_domain' => 'ezplatform_content_forms_fieldtype']);
$resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']);
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/Form/Type/FieldType/ImageAssetFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException;
use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
use Ibexa\Core\FieldType\ImageAsset\AssetMapper;
use JMS\TranslationBundle\Annotation\Desc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
Expand Down Expand Up @@ -115,7 +116,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'translation_domain' => 'ezplatform_content_forms_fieldtype',
'translation_domain' => 'ibexa_content_forms_fieldtype',
]);
}

Expand Down
Loading

0 comments on commit d136cd6

Please sign in to comment.