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

Support plural forms #112

Open
thet opened this issue Nov 22, 2023 · 1 comment
Open

Support plural forms #112

thet opened this issue Nov 22, 2023 · 1 comment

Comments

@thet
Copy link
Member

thet commented Nov 22, 2023

Since zope.i18n 4.5.0 [1] and zope.i18nmessageid 4.3.0 [2] we have support for plural messageids and default translations.
It works like this:

        items = [1, 2, 3]
        title = _(
            "example_title",
            default="This is my example title."
            msgid_plural="example_title__plural",
            default_plural="This are my example titles."
            number=len(items),
        )

i18ndude cannot extract the plural forms yet.

[1] zopefoundation/zope.i18n#5
[2] https://github.com/zopefoundation/zope.i18nmessageid/blob/master/src/zope/i18nmessageid/message.py#L108

@mauritsvanrees
Copy link
Member

That would indeed be nice.
I currently have no plans to work on this myself, but happy to review a PR.

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

2 participants