Skip to content

Commit d136cd6

Browse files
authored
IBX-6415: Renamed domain names (#52)
1 parent 4b5215f commit d136cd6

24 files changed

+148
-137
lines changed

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

Lines changed: 0 additions & 116 deletions
This file was deleted.

src/bundle/Resources/translations/content_edit.en.xliff renamed to src/bundle/Resources/translations/ibexa_content_edit.en.xliff

File renamed without changes.

src/bundle/Resources/translations/ezplatform_content_forms_content.en.xliff renamed to src/bundle/Resources/translations/ibexa_content_forms_content.en.xliff

File renamed without changes.

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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,111 @@
66
<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>
77
</header>
88
<body>
9+
<trans-unit id="0245eebf28779a38e0e2d072dfe6a288625b2c52" resname="content.field_type.binary_base.file">
10+
<source>File</source>
11+
<target state="new">File</target>
12+
<note>key: content.field_type.binary_base.file</note>
13+
</trans-unit>
14+
<trans-unit id="1bd4c3b865897e29623c2b4d3a42d4fc1df85c9f" resname="content.field_type.binary_base.remove">
15+
<source>Remove</source>
16+
<target state="new">Remove</target>
17+
<note>key: content.field_type.binary_base.remove</note>
18+
</trans-unit>
19+
<trans-unit id="db5d6f82fe5ba6f40d1d159dca89c659c76aad06" resname="content.field_type.ezauthor.email">
20+
<source>Email</source>
21+
<target state="new">Email</target>
22+
<note>key: content.field_type.ezauthor.email</note>
23+
</trans-unit>
24+
<trans-unit id="05fe48833d61c38f4c532c34c4b6fdad323e1fe1" resname="content.field_type.ezauthor.name">
25+
<source>Name</source>
26+
<target state="new">Name</target>
27+
<note>key: content.field_type.ezauthor.name</note>
28+
</trans-unit>
29+
<trans-unit id="79843ce578133501bb420c52cd410a113dcfaefb" resname="content.field_type.ezgmaplocation.address">
30+
<source>Address</source>
31+
<target state="new">Address</target>
32+
<note>key: content.field_type.ezgmaplocation.address</note>
33+
</trans-unit>
34+
<trans-unit id="2fcb1cae76dae0c5ddda6446822bf2d656e84601" resname="content.field_type.ezgmaplocation.latitude">
35+
<source>Latitude</source>
36+
<target state="new">Latitude</target>
37+
<note>key: content.field_type.ezgmaplocation.latitude</note>
38+
</trans-unit>
39+
<trans-unit id="f598e2bedb749c004e232b9c3f0cffbc08f9c491" resname="content.field_type.ezgmaplocation.longitude">
40+
<source>Longitude</source>
41+
<target state="new">Longitude</target>
42+
<note>key: content.field_type.ezgmaplocation.longitude</note>
43+
</trans-unit>
44+
<trans-unit id="aa904d94a0f6df2084d669e82dac178189509aab" resname="content.field_type.ezimage.alternative_text">
45+
<source>Alternative text</source>
46+
<target state="new">Alternative text</target>
47+
<note>key: content.field_type.ezimage.alternative_text</note>
48+
</trans-unit>
49+
<trans-unit id="5da12c12b4df6790c55fb4d0b11f72fa621b0d1f" resname="content.field_type.ezimageasset.alternative_text">
50+
<source>Alternative text</source>
51+
<target state="new">Alternative text</target>
52+
<note>key: content.field_type.ezimageasset.alternative_text</note>
53+
</trans-unit>
54+
<trans-unit id="7162d22b1be8aaa634e57fa94cc2664026be4390" resname="content.field_type.ezmedia.autoplay">
55+
<source>Autoplay</source>
56+
<target state="new">Autoplay</target>
57+
<note>key: content.field_type.ezmedia.autoplay</note>
58+
</trans-unit>
59+
<trans-unit id="f0176a5e197c6c207e09affb1a027db2ab48a506" resname="content.field_type.ezmedia.display_controls">
60+
<source>Display controls</source>
61+
<target state="new">Display controls</target>
62+
<note>key: content.field_type.ezmedia.display_controls</note>
63+
</trans-unit>
64+
<trans-unit id="eb3b924b6a2d94344ea5e1e51636ef5b92a7a57a" resname="content.field_type.ezmedia.height">
65+
<source>Height</source>
66+
<target state="new">Height</target>
67+
<note>key: content.field_type.ezmedia.height</note>
68+
</trans-unit>
69+
<trans-unit id="48e4eb02443e58b9ff501ca03bdc4008e842eba4" resname="content.field_type.ezmedia.loop">
70+
<source>Loop</source>
71+
<target state="new">Loop</target>
72+
<note>key: content.field_type.ezmedia.loop</note>
73+
</trans-unit>
74+
<trans-unit id="e5940ee516f3edb1d09e7ac4eed4fe7a28d3cacd" resname="content.field_type.ezmedia.width">
75+
<source>Width</source>
76+
<target state="new">Width</target>
77+
<note>key: content.field_type.ezmedia.width</note>
78+
</trans-unit>
79+
<trans-unit id="25850f96dbb0457a35063e29e92a26cbba2de07d" resname="content.field_type.ezurl.link">
80+
<source>URL</source>
81+
<target state="new">URL</target>
82+
<note>key: content.field_type.ezurl.link</note>
83+
</trans-unit>
84+
<trans-unit id="e6ca454559e2a762b64c43847db1e227b3077540" resname="content.field_type.ezurl.text">
85+
<source>Text</source>
86+
<target state="new">Text</target>
87+
<note>key: content.field_type.ezurl.text</note>
88+
</trans-unit>
89+
<trans-unit id="7a3eb3ea13db1c9d6a0bd64c7d249a45e7b83b52" resname="content.field_type.ezuser.email">
90+
<source>Email</source>
91+
<target state="new">Email</target>
92+
<note>key: content.field_type.ezuser.email</note>
93+
</trans-unit>
94+
<trans-unit id="8ac4ec40153c80fd39d2051802e30ebffb6f1fe1" resname="content.field_type.ezuser.enabled">
95+
<source>Enabled</source>
96+
<target state="new">Enabled</target>
97+
<note>key: content.field_type.ezuser.enabled</note>
98+
</trans-unit>
99+
<trans-unit id="4c65e5d17516c19e311161e374bbd39f053b5e6b" resname="content.field_type.ezuser.password">
100+
<source>Password</source>
101+
<target state="new">Password</target>
102+
<note>key: content.field_type.ezuser.password</note>
103+
</trans-unit>
104+
<trans-unit id="d2fe533f4032896195d524038c3abeb2209adece" resname="content.field_type.ezuser.password_confirm">
105+
<source>Confirm password</source>
106+
<target state="new">Confirm password</target>
107+
<note>key: content.field_type.ezuser.password_confirm</note>
108+
</trans-unit>
109+
<trans-unit id="d1f5c5fcee7eb206e496dd5073b0f95427431a1c" resname="content.field_type.ezuser.username">
110+
<source>Username</source>
111+
<target state="new">Username</target>
112+
<note>key: content.field_type.ezuser.username</note>
113+
</trans-unit>
9114
<trans-unit id="1d777459cd2f508bdb4676d48eaeee62e11d3009" resname="content_forms.relation.location_type">
10115
<source>Select Starting Location</source>
11116
<target state="new">Select Starting Location</target>

src/bundle/Resources/translations/ezplatform_content_forms_user.en.xliff renamed to src/bundle/Resources/translations/ibexa_content_forms_user.en.xliff

File renamed without changes.

src/bundle/Resources/translations/ezplatform_fields_groups.en.xliff renamed to src/bundle/Resources/translations/ibexa_fields_groups.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<body>
99
<trans-unit id="040f06fd774092478d450774f5ba30c5da78acc8" resname="content">
1010
<source>Content</source>
11-
<target>Content</target>
11+
<target state="new">Content</target>
1212
<note>key: content</note>
1313
</trans-unit>
1414
<trans-unit id="4c24b2612e94e2ae622e54397663f2b7bf0a2e17" resname="metadata">
1515
<source>Metadata</source>
16-
<target>Metadata</target>
16+
<target state="new">Metadata</target>
1717
<note>key: metadata</note>
1818
</trans-unit>
1919
</body>

src/lib/Content/Form/Provider/GroupedContentFormFieldsProvider.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
use Ibexa\Contracts\ContentForms\Content\Form\Provider\GroupedContentFormFieldsProviderInterface;
1212
use Ibexa\Core\Helper\FieldsGroups\FieldsGroupsList;
13+
use JMS\TranslationBundle\Model\Message;
14+
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1315

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

3840
return $groupedFields;
3941
}
42+
43+
public static function getTranslationMessages(): array
44+
{
45+
return [
46+
Message::create('content', 'ibexa_fields_groups')->setDesc('Content'),
47+
Message::create('metadata', 'ibexa_fields_groups')->setDesc('Metadata'),
48+
];
49+
}
4050
}

src/lib/FieldType/Mapper/UserAccountFieldValueFormMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function configureOptions(OptionsResolver $resolver)
7171
{
7272
$resolver
7373
->setDefaults([
74-
'translation_domain' => 'ezplatform_content_forms_content',
74+
'translation_domain' => 'ibexa_content_forms_content',
7575
]);
7676
}
7777

src/lib/Form/Type/Content/BaseContentType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Ibexa\ContentForms\Form\Type\Content;
1010

11+
use JMS\TranslationBundle\Annotation\Desc;
1112
use Symfony\Component\Form\AbstractType;
1213
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
1314
use Symfony\Component\Form\FormBuilderInterface;
@@ -60,7 +61,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
6061
public function configureOptions(OptionsResolver $resolver)
6162
{
6263
$resolver
63-
->setDefaults(['translation_domain' => 'ezplatform_content_forms_content'])
64+
->setDefaults(['translation_domain' => 'ibexa_content_forms_content'])
6465
->setRequired(['languageCode', 'mainLanguageCode']);
6566
}
6667
}

src/lib/Form/Type/Content/ContentDraftCreateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
7070

7171
public function configureOptions(OptionsResolver $resolver)
7272
{
73-
$resolver->setDefaults(['translation_domain' => 'ezplatform_content_forms_content']);
73+
$resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_content']);
7474
}
7575
}
7676

0 commit comments

Comments
 (0)