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

Add plural support #28

Closed
chrztoph opened this issue Sep 14, 2020 · 6 comments
Closed

Add plural support #28

chrztoph opened this issue Sep 14, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@chrztoph
Copy link
Member

chrztoph commented Sep 14, 2020

Add a new option to activate plural support for keys. On activation show the following fields:

  • zero
  • one
  • two
  • few
  • many
  • other

For Android there is an own data format to export such plural keys.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <plurals name="demo_plural">
        <item quantity="one">%1$d book</item>
        <item quantity="other">%1$d books</item>
    </plurals>
</resources>

https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_plural_rules.html

@chrztoph chrztoph added the enhancement New feature or request label Sep 14, 2020
@chrztoph chrztoph self-assigned this Sep 14, 2020
@Nonouf
Copy link

Nonouf commented Nov 23, 2021

@chrztoph What's up with plural support? Are you by any chance planning to support it soon? Thanks!

@chrztoph
Copy link
Member Author

Yes, we already started developing plural support. Expect it to be ready in January.

@weakfl
Copy link

weakfl commented Oct 31, 2023

There's still no "Zero" option. Any plans to add this any time soon?

@chrztoph
Copy link
Member Author

chrztoph commented Nov 5, 2023

Hey, plural support has already been added. Which options are available depends on the language you have chosen (according to the CLDR Language Plural Rules). The zero options is also available.

@chrztoph chrztoph closed this as completed Nov 5, 2023
@weakfl
Copy link

weakfl commented Nov 6, 2023

The zero options is also available.

@chrztoph where exactly? 👇

Screenshot 2023-11-06 at 08 55 05

@chrztoph
Copy link
Member Author

chrztoph commented Nov 6, 2023

Well English hast not a dedicated form for Zero, but I must admit that this might be useful sometimes to have a special text for example if there are 0 elements. I created another ticket for that here: #168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants