Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 24, 2014

Conversation

polomarcus
Copy link
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
Copy link
Owner

siddii commented Oct 24, 2014

Thanks for the PR 👍

@sanderai
Copy link
Contributor

sanderai commented Dec 2, 2014

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
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
Copy link
Contributor

sanderai commented Dec 2, 2014

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants