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

Pluralization support #58

Open
Xowap opened this issue Apr 28, 2018 · 0 comments
Open

Pluralization support #58

Xowap opened this issue Apr 28, 2018 · 0 comments
Milestone

Comments

@Xowap
Copy link
Contributor

Xowap commented Apr 28, 2018

There is a cruel need for pluralization support in the translations system. Proposed syntax for keys:

SOME_STUFF[n=1],I have one carrot
SOME_STUFF[10<=n<=20], I have between 10 and 20 carrots
SOME_STUFF[n>20],I have more than 20 carrots
SOME_STUFF,I have {n} carrots

A typical case in French:

"SOME_STUFF[0,1]",J'ai {n} carotte
"SOME_STUFF",J'ai {n} carottes

So basically, the part between brackets allows to specify a boolean condition (exact syntax to be determined). The line without brackets is the default one (usually the plural one)

@Xowap Xowap added this to the 0.3.0 milestone Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant