Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated 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.