Merge pull request #54 from AndrewRadev/fix-plurality-for-zero-items

Fix wording for 0 items
This commit is contained in:
David Coallier
2013-01-17 09:55:38 -08:00

View File

@@ -320,8 +320,8 @@ var run = function() {
username: username,
watchers: repo.info.watchers,
forks: repo.info.forks,
watchersLabel: repo.info.watchers > 1 ? 'watchers' : 'watcher',
forksLabel: repo.info.forks > 1 ? 'forks' : 'fork',
watchersLabel: repo.info.watchers == 0 || repo.info.watchers > 1 ? 'watchers' : 'watcher',
forksLabel: repo.info.forks == 0 || repo.info.forks > 1 ? 'forks' : 'fork',
};
if (itemCount == sorted.length - 1 || itemCount == maxItems - 1) {