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 form generation from .po #66

Closed
firebird631 opened this issue Sep 20, 2017 · 5 comments
Closed

Plural form generation from .po #66

firebird631 opened this issue Sep 20, 2017 · 5 comments

Comments

@firebird631
Copy link

I've something like this in my .po :

"Plural-Forms: nplurals=2; plural=(n > 1);\n"

msgid "characters_min"
msgid_plural "characters_min"
msgstr[0] "Au moins un caractère"
msgstr[1] "Au moins {{count}} caractères"

According to the doc I should have in JSON characters_min and characters_min_plural keys.
But in practice what I've is :

    "characters_min_0": "Au moins un caractère",
    "characters_min_1": "Au moins {{count}} caractères",
    "characters_max_0": "Au plus un caractère",
    "characters_max_1": "Au plus {{count}} caractères",

What I need is :

    "characters_min": "Au moins un caractère",
    "characters_min_plural": "Au moins {{count}} caractères",
    "characters_max": "Au plus un caractère",
    "characters_max_plural": "Au plus {{count}} caractères",

Thx

@perrin4869
Copy link
Contributor

Ditto

@difelice
Copy link
Contributor

What's the status of this issue?

@perrin4869
Copy link
Contributor

No progress, will appreciate a PR

@firebird631
Copy link
Author

Sorry I no longer use of gettext and so PO files into my client side. I have no more ideas about the issue.

@adrai
Copy link
Member

adrai commented Feb 9, 2022

should work with newest version

@adrai adrai closed this as completed Feb 9, 2022
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

No branches or pull requests

4 participants