Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Angolan Portuguese inherits its unit patterns from European Portuguese, but CLDR assigns it the general Portuguese plural rule. Babel currently applies the European Portuguese rule as well, so
Locale('pt', 'AO').plural_form(0)returnsotherandformat_unit(0, 'duration-day', locale='pt_AO')produces0 dias. ICU returnsoneand0 dia.When importing a locale with an explicit parent for its text, record the language’s plural rule if the locale has no rule of its own. CLDR 49 defines a separate parent table for plurals with no overrides. CLDR 49 parent locales · UTS #35 inheritance rules
The regression covers both Angola and Portugal. Comparing the imported cardinal and ordinal rules with CLDR 49 across all 1,147 locales found ten cardinal mismatches before the change and none afterward. The full test suite passed with 8,293 tests, three skips and two expected failures.