Skip to content

Commit

Permalink
IBX-6415: Renamed domain names (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk authored Sep 5, 2023
1 parent 2445c9a commit e4c3282
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<trans-unit id="213da4efa5baa8b47c34dc4b645df7115d07d66e" resname="ezrichtext.name">
<source>Rich text</source>
<target>Rich text</target>
<target state="new">Rich text</target>
<note>key: ezrichtext.name</note>
</trans-unit>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% trans_default_domain "content_fields" %}
{% trans_default_domain 'ibexa_content_fields' %}

{% extends "@IbexaCore/content_fields.html.twig" %}

Expand Down
11 changes: 10 additions & 1 deletion src/lib/FieldType/RichText/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
use Ibexa\Core\FieldType\FieldType;
use Ibexa\Core\FieldType\ValidationError;
use Ibexa\Core\FieldType\Value as BaseValue;
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
use RuntimeException;

/**
* RichText field type.
*/
class Type extends FieldType
class Type extends FieldType implements TranslationContainerInterface
{
/**
* @var \Ibexa\Contracts\FieldTypeRichText\RichText\InputHandlerInterface
Expand Down Expand Up @@ -287,6 +289,13 @@ public function getRelations(SPIValue $value)

return $relations;
}

public static function getTranslationMessages(): array
{
return [
(new Message('ezrichtext.name', 'ibexa_fieldtypes'))->setDesc('Rich text'),
];
}
}

class_alias(Type::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Type');

0 comments on commit e4c3282

Please sign in to comment.