Grammatically Correct Comment Count
From Bloggerhacks
(Difference between revisions)
Revision as of 16:12, 19 June 2006
Contents |
Platform
Use for Blogger.
Author
Homepage
Skill Level
Novice. Requires Blogger template editing and insertion of a simple JavaScript.
Description
This hack addresses the problem of correctly handling plurals with comments. For example, it should read 0 comments, 1 comment or 2 comments etc. That is, comment should be plural for all cases except when there's a solitary comment.
Method
- Edit your Blogger template to include four lines of JavaScript.