nette / forms

📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.
https://doc.nette.org/forms
Other
497 stars 147 forks source link

UploadControl MaxLenght message %i #300

Closed marekskopal closed 1 year ago

marekskopal commented 1 year ago

Version: 3.1.11

Bug Description

In UploadControl there is new validation rule for MaxLenght with message in form of "The maximum allowed number of uploaded files is %i". But %i is not sprintf specifier. For integer there shoud be %d specifier. This change brakes our translation module.

Possible Solution

Change message to "The maximum allowed number of uploaded files is %d" or set it to null.

kuty commented 1 year ago

when will be this fix released, pls?