HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Pluralisation

edited December 2011 in Feedback

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

Sign In or Register to comment.