You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into a weird translation problem where collective.easyform 'global' form errors have an untranslated type. It always says 'Error' in every language. This might be a problem in the way collective.easyform is calling the macro, where the calling template has i18n:domain set to collective.easyform instead of plone :
A solution would be to add i18n:domain="plone" to line 20 . As said, I'm not sure if the problem isn't in easyform, because a lot of the translations for validation errors and other messages are duplicated in the collective.easyform domain. See the screenshots below for the testform views in Dutch and German, collective.easyform doesn't have Dutch translations (but does have German ones), but all error mesages are still translated in Dutch.
On the other hand, i18ndude cannot pick up these translations for the status message type as they are in plone.app.z3cform: To fix this in easyform I'd have to add an extra collective-easform-manual.pot which has to be merged with the translations picked up by i18ndude. Which is also double work for every addon using z3c.form macros.
The text was updated successfully, but these errors were encountered:
fredvd
changed the title
Statusmessage type is untranslated when using @@ploneform-macros with different domain
Statusmessage type is untranslated when using @@ploneform-macros/form with different domain from another package
Nov 8, 2019
I'm looking into a weird translation problem where collective.easyform 'global' form errors have an untranslated type. It always says 'Error' in every language. This might be a problem in the way collective.easyform is calling the macro, where the calling template has i18n:domain set to collective.easyform instead of plone :
https://github.com/collective/collective.easyform/blob/5d18bce01c104ae44fc3a11086a4f7475951aa93/src/collective/easyform/browser/easyform_form.pt#L1-L6
it is this part in the form macros.pt which isn't translated:
plone.app.z3cform/plone/app/z3cform/templates/macros.pt
Lines 20 to 22 in 86326cf
A solution would be to add i18n:domain="plone" to line 20 . As said, I'm not sure if the problem isn't in easyform, because a lot of the translations for validation errors and other messages are duplicated in the collective.easyform domain. See the screenshots below for the testform views in Dutch and German, collective.easyform doesn't have Dutch translations (but does have German ones), but all error mesages are still translated in Dutch.
On the other hand, i18ndude cannot pick up these translations for the status message type as they are in plone.app.z3cform: To fix this in easyform I'd have to add an extra collective-easform-manual.pot which has to be merged with the translations picked up by i18ndude. Which is also double work for every addon using z3c.form macros.
@mauritsvanrees Found it...
The text was updated successfully, but these errors were encountered: