Skip to content

Commit

Permalink
Merge pull request #115 from plone/fix-i18n-message-type
Browse files Browse the repository at this point in the history
Fix message type like Error not translated in add form
  • Loading branch information
vincentfretin authored Jun 29, 2020
2 parents b5d0dba + 21e6ab4 commit cd1e852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions news/115.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix message type like Error not translated in add form.
This closes https://github.com/plone/Products.CMFPlone/issues/3126
[vincentfretin]
4 changes: 2 additions & 2 deletions plone/app/z3cform/templates/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<tal:status define="status view/status;
has_error python:view.widgets.errors or status == getattr(view, 'formErrorsMessage', None)" condition="status">
<dl class="portalMessage error" tal:condition="has_error" role="alert">
<dt i18n:translate="">
<dt i18n:translate="" i18n:domain="plone">
Error
</dt>
<dd tal:content="status" />
</dl>
<dl class="portalMessage info" tal:condition="not:has_error" role="status">
<dt i18n:translate="">
<dt i18n:translate="" i18n:domain="plone">
Info
</dt>
<dd tal:content="status" />
Expand Down

0 comments on commit cd1e852

Please sign in to comment.