Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

Follow Us


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.