deform icon indicating copy to clipboard operation
deform copied to clipboard

Missing internationalization in Label and Description

Open szczad opened this issue 11 years ago • 2 comments

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>

szczad avatar May 15 '13 14:05 szczad

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}.

stevepiercy avatar Aug 24 '20 08:08 stevepiercy

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

stevepiercy avatar Oct 31 '22 19:10 stevepiercy