Fork me on GitHub
Current releases are 2.1 (gold) and 2.0.18.11 (security patch for 2.0)
Ready for 2.1? Find out if your favorite plugins are compatible.
The 2.0 branch will no longer receive updates after Dec 2014.

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.