Skip to content

Commit

Permalink
Merge pull request #435 from collective/declare-zcml-dep
Browse files Browse the repository at this point in the history
Include the Products.validation ZCML to load the proper translation c…
  • Loading branch information
ale-rt authored Oct 8, 2024
2 parents 45059ea + da4f947 commit cb88b05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Changelog
- Add plone.shortname behaviour to EasyForm type.
[ThibautBorn]

- Include the Products.validation ZCML to load the proper translation catalog.
Refs. `issue 434 <https://github.com/collective/collective.easyform/issues/434>`_.
[ale-rt]


4.2.0 (2024-03-15)
------------------
Expand Down
9 changes: 5 additions & 4 deletions src/collective/easyform/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
>

<include package="plone.app.dexterity" />
<include package="Products.validation" />

<configure zcml:condition="installed plone.formwidget.recaptcha">"
<include package="plone.formwidget.recaptcha" />
Expand All @@ -26,7 +27,7 @@

<include package=".browser" />
<include package=".upgrades" />
<include zcml:condition="installed Products.PloneFormGen" package=".migration" />
<include zcml:condition="installed Products.PloneFormGen" package=".migration" />

<genericsetup:registerProfile
name="default"
Expand Down Expand Up @@ -57,15 +58,15 @@
name="collective.easyform-hiddenprofiles"
factory=".setuphandlers.HiddenProfiles"
/>

<adapter
zcml:condition="installed plone.restapi"
factory="collective.easyform.serializer.SerializeToJson"
/>

<adapter
zcml:condition="installed plone.restapi"
factory="collective.easyform.serializer.DeserializeFromJson"
factory="collective.easyform.serializer.DeserializeFromJson"
/>

</configure>

0 comments on commit cb88b05

Please sign in to comment.