sending absolute value to format_plural avoids this

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

elky’s picture

Status: Active » Needs review
FileSize
1.6 KB
elky’s picture

Rerolled patch to get rid of the other changes not relevant to this issue

marvil07’s picture

Status: Needs review » Fixed

Good 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

elky’s picture

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

elky’s picture

As I expected, it's not an easy fix to put through core. http://drupal.org/node/1131926

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.