LibUnicode: Tweak the definition of the plurality "many"
As noted at the top of this method, this is a naive implementation of the Unicode plurality specification. But for now, we should tweak the defintion of "many" to be "more than 2" (which is what I had in mind when I wrote this, but forgot about fractions).
This commit is contained in:
parent
c24a350a18
commit
80493908d3
Notes:
sideshowbarker
2024-07-18 01:04:06 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/80493908d36 Pull-request: https://github.com/SerenityOS/serenity/pull/10939 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -995,7 +995,7 @@ Optional<NumberFormat> select_pattern_with_plurality(Vector<NumberFormat> const&
|
|||
} else if (number == 2) {
|
||||
if (auto patterns = find_plurality(NumberFormat::Plurality::Two); patterns.has_value())
|
||||
return patterns;
|
||||
} else {
|
||||
} else if (number > 2) {
|
||||
if (auto patterns = find_plurality(NumberFormat::Plurality::Many); patterns.has_value())
|
||||
return patterns;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue