diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-11-16 16:56:26 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-16 23:14:09 +0000 |
commit | 80493908d36cc63f1e74d20251330e42ffb74108 (patch) | |
tree | 2cdcb9b34414c4ae5ae8d92c71df0b9d40274c15 /Userland | |
parent | c24a350a18e005a37f39b93f53708ee8ec73c1cb (diff) | |
download | serenity-80493908d36cc63f1e74d20251330e42ffb74108.zip |
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).
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibUnicode/Locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibUnicode/Locale.cpp b/Userland/Libraries/LibUnicode/Locale.cpp index 3d195c3ee3..f437491b3b 100644 --- a/Userland/Libraries/LibUnicode/Locale.cpp +++ b/Userland/Libraries/LibUnicode/Locale.cpp @@ -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; } |