From 80493908d36cc63f1e74d20251330e42ffb74108 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 16 Nov 2021 16:56:26 -0500 Subject: [PATCH] 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). --- Userland/Libraries/LibUnicode/Locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 select_pattern_with_plurality(Vector 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; }