Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

Pluralisation

edited December 2011 in Feedback
This discussion is related to the Voting addon.

i wanted to contribute something, so i thought ill tell you that you should use pluralisation in your outputs on the threadlist, like this:

Wrap(T('Comments')) . Gdn_Format::BigNumber($Discussion->CountComments - 1)
should be:
Wrap(Plural($Discussion->CountComments, 'Comment', 'Comments')) . Gdn_Format::BigNumber($Discussion->CountComments)

Wrap(T('Views')) . Gdn_Format::BigNumber($Discussion->CountViews)
should be:
Wrap(Plural($Discussion->CountViews, 'View', 'Views')) . Gdn_Format::BigNumber($Discussion->CountViews)

Wrap(T('Follows')) . Gdn_Format::BigNumber($Discussion->CountBookmarks)
should be:
Wrap(Plural($Discussion->CountBookmarks, 'Follow', 'Follows')) . Gdn_Format::BigNumber($Discussion->CountBookmarks)

Wrap(T('Votes')) . Gdn_Format::BigNumber($CountVotes)
should be:
Wrap(Plural($CountVotes, 'Vote', 'Votes')) . Gdn_Format::BigNumber($CountVotes)

so at example :1 comment" is "1 comment" and not "1 comments" :D

candymansahotataran422
Sign In or Register to comment.