"0 votes" is translated to "1 vote"

dtabach - November 18, 2008 - 16:37
Project:Advanced Poll
Version:5.x-1.0-beta6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

If a Poll has no votes for one of the choices, the total votes for this choice shows the corresponding translated string for "1 vote" when the language interface is other than the default English. The percentage is displayed correctly ("0%"), though.

Even after deleting the translation string for "1 vote", it still shows the "1 vote" string from the original English.

But if user sets english as the interface language, then it shows correctly ("0 votes").

If the choice has 1 vote, all strings show correctly.

#1

ChrisKennedy - December 8, 2008 - 05:21
Status:active» postponed (maintainer needs more info)

Hmm from the code I see nothing wrong - the data is passed from advpoll_view_results() to theme_advpoll_results() and the t() functions all look okay. What language(s) does this happen in, and can anyone else confirm?

 
 

Drupal is a registered trademark of Dries Buytaert.