Open toolstack opened 7 years ago
The main issue is converting the gettext plurals equations in to CLDR plural types.
There are a few issues:
The above cause 3 primary problems:
There's no easy way to map between the gettext expressions and the CLDR types, it might be possible if all of our expressions matched with the CLDR types, but even then the number of variations make it nearly impossible to do the mapping reliably.
My current thought about a solution is to do the following:
cldr_order
and cldr_unsupported
property to the locale class. cldr_order
would be an array() of orders (probably a good time to revisit the variants issues).cldr_order
would match the default we currently use for the gettext expressions.cldr_order
to match the CLDR data.cldr_unsupported = true
to them so that in the future we can add them if the CLDR database is updated. We could also add a comment to the header when exported to indicate that it is currently not in the CLDR database.The downside to the above is probably some pretty major breakage for some locales where the plurals expression is currently "incorrect". But that should probably be fixed either way.
Currently GP does not support plurals in Android XML files, however the standard does provide support for them.