Download & Extend

format_plural reports plural for singular down vote

Project:Vote Up/Down
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:elky
Status:closed (fixed)

Issue Summary

sending absolute value to format_plural avoids this

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
format_plural_absolutes-1124448-1.patch1.6 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch format_plural_absolutes-1124448-1.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details

#2

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

AttachmentSizeStatusTest resultOperations
format_plural_absolutes-1124448-2.patch974 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch format_plural_absolutes-1124448-2.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details

#3

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

#4

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.

#5

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

#6

Status:fixed» closed (fixed)

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

nobody click here