Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
sending absolute value to format_plural avoids this
Comment | File | Size | Author |
---|---|---|---|
#2 | format_plural_absolutes-1124448-2.patch | 974 bytes | elky |
#1 | format_plural_absolutes-1124448-1.patch | 1.6 KB | elky |
Comments
Comment #1
elky CreditAttribution: elky commentedComment #2
elky CreditAttribution: elky commentedRerolled patch to get rid of the other changes not relevant to this issue
Comment #3
marvil07 CreditAttribution: marvil07 commentedGood catch!
The point is that if format_plural receives a -1 it takes the plural form, WTF?
Patch committed to 6.x-2.x, 6.x-3.x and 7.x-1.x.
Thanks
Comment #4
elky CreditAttribution: elky commentedGlad to be of assistance!
I'm actually at some point going to poke core with a patch (or you can if you like, I don't mind!) The linguistic nuances of format_plural are somewhat contentiously debated though.
Comment #5
elky CreditAttribution: elky commentedAs I expected, it's not an easy fix to put through core. http://drupal.org/node/1131926