txty-io / texterify

The translation and localization management system.
https://texterify.com
Other
175 stars 14 forks source link

Add plural support #28

Closed chrztoph closed 10 months ago

chrztoph commented 3 years ago

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

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

Nonouf commented 2 years ago

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

chrztoph commented 2 years ago

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

weakfl commented 10 months ago

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

chrztoph commented 10 months ago

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.

weakfl commented 10 months ago

The zero options is also available.

@chrztoph where exactly? 👇

Screenshot 2023-11-06 at 08 55 05
chrztoph commented 10 months ago

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: https://github.com/txty-io/texterify/issues/168