Skip to content

Commit 167d710

Browse files
authored
IBX-10167: Fixed translations export in abstract field type classes (#603)
For more details see https://issues.ibexa.co/browse/IBX-10167 and #603 Key changes: * Fixed translations export in abstract field type classes
1 parent 75978a7 commit 167d710

File tree

7 files changed

+35
-33
lines changed

7 files changed

+35
-33
lines changed

src/bundle/Core/Resources/translations/ibexa_fieldtypes.en.xlf

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,117 +6,117 @@
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="06a34ac23ac86f7c4368380203e3dd4d91489fa0" resname="ibexa_author.name">
9+
<trans-unit id="4ebf975167e11d223757e94939c78fd401d26613" resname="ibexa_author.name">
1010
<source>Authors</source>
1111
<target>Authors</target>
1212
<note>key: ibexa_author.name</note>
1313
</trans-unit>
14-
<trans-unit id="e4ca4a21a1e442e6a1232320b2184b9e4105c73f" resname="ibexa_binaryfile.name">
14+
<trans-unit id="8bc4e796189bb633598f9b552f3d175d9b75c2f0" resname="ibexa_binaryfile.name">
1515
<source>File</source>
1616
<target>File</target>
1717
<note>key: ibexa_binaryfile.name</note>
1818
</trans-unit>
19-
<trans-unit id="129dd46eabe280c49a0e9d424d9cbf676621aec9" resname="ibexa_boolean.name">
19+
<trans-unit id="d92a104de67f12a9e3765d89e0e3d7ef2d3038a0" resname="ibexa_boolean.name">
2020
<source>Checkbox</source>
2121
<target>Checkbox</target>
2222
<note>key: ibexa_boolean.name</note>
2323
</trans-unit>
24-
<trans-unit id="c4c3e3c536a09969467c7c9bb584459b47317fed" resname="ibexa_country.name">
24+
<trans-unit id="e87fb24d4b5451ff6b0a9bb507eb406a21fe7680" resname="ibexa_country.name">
2525
<source>Country</source>
2626
<target>Country</target>
2727
<note>key: ibexa_country.name</note>
2828
</trans-unit>
29-
<trans-unit id="3bd547a05c5a7b5ee111cc5ca608df9199f04c51" resname="ibexa_date.name">
29+
<trans-unit id="c29a3418379f739248c56a800e6e6ab68c61b344" resname="ibexa_date.name">
3030
<source>Date</source>
3131
<target>Date</target>
3232
<note>key: ibexa_date.name</note>
3333
</trans-unit>
34-
<trans-unit id="42d9e26b6e8e65856f709461b589cb7925a9f43e" resname="ibexa_datetime.name">
34+
<trans-unit id="32f442afdead4bd5bb6012ec207d554d0319bdb1" resname="ibexa_datetime.name">
3535
<source>Date and time</source>
3636
<target>Date and time</target>
3737
<note>key: ibexa_datetime.name</note>
3838
</trans-unit>
39-
<trans-unit id="d772ac8909929964906cbefd41c468c9a5d2be26" resname="ibexa_email.name">
39+
<trans-unit id="90d47524e7a0a88a178d853e6837edc22eb744ad" resname="ibexa_email.name">
4040
<source>Email address</source>
4141
<target>Email address</target>
4242
<note>key: ibexa_email.name</note>
4343
</trans-unit>
44-
<trans-unit id="0a1f3297ccc08882f5a4610f9af8fc4148c74adc" resname="ibexa_float.name">
44+
<trans-unit id="f7ea7154a9cc8053001cb86b1399e2b960ea18d6" resname="ibexa_float.name">
4545
<source>Float</source>
4646
<target>Float</target>
4747
<note>key: ibexa_float.name</note>
4848
</trans-unit>
49-
<trans-unit id="fcabb29fdb097d916c88328daad461c1ea765121" resname="ibexa_gmap_location.name">
49+
<trans-unit id="4db71d15e3b1cd9031129ad441eb6e5ff97d0837" resname="ibexa_gmap_location.name">
5050
<source>Map location</source>
5151
<target>Map location</target>
5252
<note>key: ibexa_gmap_location.name</note>
5353
</trans-unit>
54-
<trans-unit id="6300f890f00d9999466b4abc478857b0d29022b4" resname="ibexa_image.name">
54+
<trans-unit id="f20feb4213b18c3a89f6d67a50021005521553f9" resname="ibexa_image.name">
5555
<source>Image</source>
5656
<target>Image</target>
5757
<note>key: ibexa_image.name</note>
5858
</trans-unit>
59-
<trans-unit id="3afdca17c734ecb3a077bcc4ba7f75a7544e845d" resname="ibexa_imageasset.name">
59+
<trans-unit id="922fa9ce06fa28b293050aded90773559fa39306" resname="ibexa_image_asset.name">
6060
<source>Image Asset</source>
61-
<target>Image Asset</target>
62-
<note>key: ibexa_imageasset.name</note>
61+
<target state="new">Image Asset</target>
62+
<note>key: ibexa_image_asset.name</note>
6363
</trans-unit>
64-
<trans-unit id="3b0f44cd332c71e78209a1a4b235bc6a1e6d374b" resname="ibexa_integer.name">
64+
<trans-unit id="3aeb96f710ddccb1a12809d3bb6f3e604fc14f75" resname="ibexa_integer.name">
6565
<source>Integer</source>
6666
<target>Integer</target>
6767
<note>key: ibexa_integer.name</note>
6868
</trans-unit>
69-
<trans-unit id="b55e4568224820cbddc794f6c2bd002baec6a5d0" resname="ibexa_isbn.name">
69+
<trans-unit id="a3ec2b68e5b828e06b1da15b81a11cb946a7b61a" resname="ibexa_isbn.name">
7070
<source>ISBN</source>
7171
<target>ISBN</target>
7272
<note>key: ibexa_isbn.name</note>
7373
</trans-unit>
74-
<trans-unit id="c564457bc5723491788fa3d0723e3716824b4a0d" resname="ibexa_keyword.name">
74+
<trans-unit id="af9a6bab19321da9ca1a04f0ca027fa0e442f3da" resname="ibexa_keyword.name">
7575
<source>Keywords</source>
7676
<target>Keywords</target>
7777
<note>key: ibexa_keyword.name</note>
7878
</trans-unit>
79-
<trans-unit id="fc0d2c8719e7c36f101ff6ddcbdfc804bf8f3da7" resname="ibexa_media.name">
79+
<trans-unit id="c8b11d42f199954911c0b4e446b4b6be2499b5dc" resname="ibexa_media.name">
8080
<source>Media</source>
8181
<target>Media</target>
8282
<note>key: ibexa_media.name</note>
8383
</trans-unit>
84-
<trans-unit id="feb25b24199466f077038c5e6e38209deae21471" resname="ibexa_object_relation.name">
84+
<trans-unit id="680b747f8dfea9a58c4f1b4240b52c973dcf2184" resname="ibexa_object_relation.name">
8585
<source>Content relation (single)</source>
8686
<target>Content relation (single)</target>
8787
<note>key: ibexa_object_relation.name</note>
8888
</trans-unit>
89-
<trans-unit id="44d2ac9ae83f6b73fa8f61fad66a77d76d2159f0" resname="ibexa_object_relation_list.name">
89+
<trans-unit id="b86639bd93e51b2fb224d8f9d712b7a75f06a1d7" resname="ibexa_object_relation_list.name">
9090
<source>Content relations (multiple)</source>
9191
<target>Content relations (multiple)</target>
9292
<note>key: ibexa_object_relation_list.name</note>
9393
</trans-unit>
94-
<trans-unit id="3229c3fc41a4af84f0fd1636f0678aac770359bc" resname="ibexa_selection.name">
94+
<trans-unit id="a53c7d8f9605046dd87f34be6bc05638d090d9ef" resname="ibexa_selection.name">
9595
<source>Selection</source>
9696
<target>Selection</target>
9797
<note>key: ibexa_selection.name</note>
9898
</trans-unit>
99-
<trans-unit id="d958019d9702d5e89f247c24563da97ea0205f58" resname="ibexa_string.name">
99+
<trans-unit id="96dcf549200ee0296e6705f1b7dda3bedcb1abcf" resname="ibexa_string.name">
100100
<source>Text line</source>
101101
<target>Text line</target>
102102
<note>key: ibexa_string.name</note>
103103
</trans-unit>
104-
<trans-unit id="e35280b88546fdd18c84ce9c401e17cbfca56e72" resname="ibexa_text.name">
104+
<trans-unit id="78d7f7c4cfa2833e249408a683af5a465fc5b587" resname="ibexa_text.name">
105105
<source>Text block</source>
106106
<target>Text block</target>
107107
<note>key: ibexa_text.name</note>
108108
</trans-unit>
109-
<trans-unit id="503c2801427b2d773d020ef953413d14c17968bd" resname="ibexa_time.name">
109+
<trans-unit id="6f7c4d9029fe167cf148b73e207aa63afc14c7f3" resname="ibexa_time.name">
110110
<source>Time</source>
111111
<target>Time</target>
112112
<note>key: ibexa_time.name</note>
113113
</trans-unit>
114-
<trans-unit id="69c0e446226061b7f2ca2b22fd4eb09e6b4e9518" resname="ibexa_url.name">
114+
<trans-unit id="dadb1a22b7fc21684d47d6cf669a2a5c0ebee21d" resname="ibexa_url.name">
115115
<source>URL</source>
116116
<target>URL</target>
117117
<note>key: ibexa_url.name</note>
118118
</trans-unit>
119-
<trans-unit id="0317c233c19b3c191acc92971bfb616c7fe298de" resname="ibexa_user.name">
119+
<trans-unit id="e787483a1bfbe0e4df0e6bbcc9d0f444928c1291" resname="ibexa_user.name">
120120
<source>User account</source>
121121
<target>User account</target>
122122
<note>key: ibexa_user.name</note>

src/lib/FieldType/BaseNumericType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
use Ibexa\Contracts\Core\FieldType\Value as SPIValue;
1212
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
13-
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1413

15-
abstract class BaseNumericType extends FieldType implements TranslationContainerInterface
14+
abstract class BaseNumericType extends FieldType
1615
{
1716
/**
1817
* @return array<string, \Ibexa\Core\FieldType\Validator>

src/lib/FieldType/BaseTextType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
1313
use Ibexa\Core\Base\Exceptions\InvalidArgumentType;
1414
use Ibexa\Core\FieldType\Value as BaseValue;
15-
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1615

1716
/**
1817
* @internal
1918
*
2019
* Base implementation for TextLine\Type and TextBlock\Type which extends TextLine\Type.
2120
*/
22-
abstract class BaseTextType extends FieldType implements TranslationContainerInterface
21+
abstract class BaseTextType extends FieldType
2322
{
2423
public function isSearchable(): bool
2524
{

src/lib/FieldType/Float/Type.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
use Ibexa\Core\FieldType\Validator;
1515
use Ibexa\Core\FieldType\Value as BaseValue;
1616
use JMS\TranslationBundle\Model\Message;
17+
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1718

1819
/**
1920
* Float field types.
2021
*
2122
* Represents floats.
2223
*/
23-
class Type extends BaseNumericType
24+
class Type extends BaseNumericType implements TranslationContainerInterface
2425
{
2526
protected $validatorConfigurationSchema = [
2627
'FloatValueValidator' => [

src/lib/FieldType/Integer/Type.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
use Ibexa\Core\FieldType\Validator;
1515
use Ibexa\Core\FieldType\Value as BaseValue;
1616
use JMS\TranslationBundle\Model\Message;
17+
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1718

1819
/**
1920
* Integer field types.
2021
*
2122
* Represents integers.
2223
*/
23-
class Type extends BaseNumericType
24+
class Type extends BaseNumericType implements TranslationContainerInterface
2425
{
2526
protected $validatorConfigurationSchema = [
2627
'IntegerValueValidator' => [

src/lib/FieldType/TextBlock/Type.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
use Ibexa\Core\FieldType\ValidationError;
1313
use Ibexa\Core\FieldType\Value as BaseValue;
1414
use JMS\TranslationBundle\Model\Message;
15+
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1516

1617
/**
1718
* The TextBlock field type.
1819
*
1920
* Represents a larger body of text, such as text areas.
2021
*/
21-
class Type extends BaseTextType
22+
class Type extends BaseTextType implements TranslationContainerInterface
2223
{
2324
protected $settingsSchema = [
2425
'textRows' => [

src/lib/FieldType/TextLine/Type.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
use Ibexa\Core\FieldType\Validator\StringLengthValidator;
1515
use Ibexa\Core\FieldType\Value as BaseValue;
1616
use JMS\TranslationBundle\Model\Message;
17+
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
1718

1819
/**
1920
* The TextLine field type.
2021
*
2122
* This field type represents a simple string.
2223
*/
23-
class Type extends BaseTextType
24+
class Type extends BaseTextType implements TranslationContainerInterface
2425
{
2526
protected $validatorConfigurationSchema = [
2627
'StringLengthValidator' => [

0 commit comments

Comments
 (0)