-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
PluralRule for DualFromZeroToTwo: Does not cover value of 2 #369
Comments
PluralRule for DualFromZeroToTwo: Does not cover value of 2 The `Dictionary<string, PluralRuleDelegate> IsoLangToDelegate` is backed by a default dictionary. It can be restored with `PluralRules.RestoreDefault()` if one of the delegates was changed. Both has global effect. Extract class `CustomPluralRuleProvider` to its own file `PluralRuleDelegate DualFromZeroToTwo`: * with 3 words, the index is for counts of 0, > 0 and < 2, more than 2 * with 4 words, the index is for counts of 0, > 0 and < 2, >= 2 and < 3, more than 3 Add unit tests
@karljj1 @Fuitad |
The link doesnt seem to work, it just takes me to the main repo page. I cant see any PRs, maybe I dont have permission to see it? |
PR submitted right now: #370 |
Discussed in #363
Originally posted by Fuitad December 4, 2023
Heya,
I'm trying to understand why French is set to DualFromZeroToTwo instead of DualOneOther like English. I'm French Canadian and I'm having a hard time understanding why
{0:plural:No object|{} object|{} objects} cached on file system
is working in English but{0:plural:Aucun objet|{} objet|{} objets} en cache sur le système
in French is giving meSmartFormat.Core.Formatting.FormattingException: Error parsing format string: Invalid number of plural parameters in PluralLocalizationFormatter
Maybe there's something in FR-FR that explains this? But on a French Canadian point of view, this doesn't make much sense.
The text was updated successfully, but these errors were encountered: