deform
deform copied to clipboard
Missing internationalization in Label and Description
Hi,
There is problem with missing invalidation of "subject" and "confirm_subject" variables in deform.widget.CheckedPasswordWidget template. CheckedInputWidget works great but not password widget. Instead of
line no. 8:<label for="${oid}" i18n:translate="">Password</label>
and
line no. 14:<label for="${oid}-confirm" i18n:translate="">Confirm Password</label>
it should be probably
line no. 8:<label for="${oid}" i18n:translate="">${subject}</label>
and
line no. 14:<label for="${oid}-confirm" i18n:translate="">${confirm_subject}</label>
With Deform 2, templates have changed. Nonetheless, translations should be supported in <label>
and in the help messages, as derived from the title
and description
of the SchemaNode. Error messages already support translations.
Check all templates that contain either description}
or title}
.
This was not completed. Reopening.
See example by appending a locale to the URL, for example: ?_LOCALE_=de
.
https://deformdemo.pylonsproject.org/checkedpassword/?LOCALE=de