Closed (fixed)
Project:
DropzoneJS
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2020 at 08:01 UTC
Updated:
21 Jul 2023 at 13:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sokru commentedComment #3
sokru commentedPatch with
formatPlural.Comment #4
netboss commentedIn our case we also needed to have the plural vs singular issue fixed for the "Add file" window which was also displaying "Drop files here to upload them", so we adjusted the above path and included a change that extend to the media add window, so when it is limited to only one file it'll read: "Drop file here to upload it".
Comment #5
swirtReviewed tested and using it on VA.gov
https://github.com/department-of-veterans-affairs/va.gov-cms/blob/main/c...
Comment #7
jungleCommitted, thanks!
Comment #8
jungleComment #10
stefan.kornif max_files (aka DropZone MaxFiles) is not set, the plural label should be used, because there is no limitation on number of files then. Now this is getting singular label, because cardinality is set to 0 by default and 0 is interpreted as singular.
I suppose $cardinality should be -1 instead by default, which will bring up plural label, see https://git.drupalcode.org/project/dropzonejs/-/blob/f3ac85c8d535452bd89...