plural

Given a non-one count argument, will attempt to return the plural version of word. Only handles basic cases. If count is one, simply returns the word.

I originally wrote this for cases like You have {n} {messages|plural(n)} in web templates.

string
plural
(
int count
,
string word
,
string pluralWord = null
)
Suggestion Box / Bug Report