Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

plural - singular unit decision now detects 0 and 1 instead of just 1 - #118

Merged
siddii merged 3 commits into
siddii:masterfrom
polomarcus:fix-plurial
Oct 24, 2014
Merged

siddii merged 3 commits into
siddii:masterfrom
polomarcus:fix-plurial

Conversation

@polomarcus

Copy link
Copy Markdown
Collaborator

No description provided.

@polomarcus polomarcus closed this Oct 24, 2014
@polomarcus polomarcus reopened this Oct 24, 2014
siddii added a commit that referenced this pull request Oct 24, 2014
plural - singular unit decision now detects 0 and 1 instead of just 1
@siddii
siddii merged commit 37f5b63 into siddii:master Oct 24, 2014
@siddii

siddii commented Oct 24, 2014

Copy link
Copy Markdown
Owner

Thanks for the PR 👍

@sanderai

sanderai commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

Why was this changed? The correct use is 0 hours, 0 minutes, 0 seconds. Not 0, day, 0 hour, 0 minute, 0 second. Zero is always plural in English. 0 books, 0 cars, 0 things.

@polomarcus

Copy link
Copy Markdown
Collaborator Author

Should we do a pull request to the English language to fix this ?

Sorry about that. Could we use a i18n config to allow "no s" on language using "no s" for 0 (french, Spanish, Italian and so on)?

I might do a PR for that

@sanderai

sanderai commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

Yeah the zero-unit pluralization can be different in different languages, maybe there is a solution to let the user decide the method. Made a PR for new unit functions so custom strings can now be added (not just appending a 's'). If this gets merged then maybe add some more functionality to that for choosing zero-pluralization?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants