From 53d0bb74806a49f3d4f4405271571465e219b20f Mon Sep 17 00:00:00 2001 From: Vyxie Date: Sat, 7 Jun 2025 13:40:56 +0800 Subject: [PATCH] correct plurals --- i18n/Filipino.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/i18n/Filipino.cpp b/i18n/Filipino.cpp index 0e9cf4f2..bb6f5703 100644 --- a/i18n/Filipino.cpp +++ b/i18n/Filipino.cpp @@ -26,7 +26,7 @@ namespace filipino // language namespace // See for language plural forms here: // https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html static int plural (int n) { - return n > 1; + return n != 1 && n != 2 && n != 3 && (n % 10 == 4 || n % 10 == 6 || n % 10 == 9); } // Right to Left language? @@ -209,11 +209,11 @@ namespace filipino // language namespace static std::map> plurals { - {"%d days", {"%d araw", "%d araw", "%d araw"}}, - {"%d hours", {"%d oras", "%d oras", "%d oras"}}, - {"%d minutes", {"%d minuto", "%d minuto", "%d minuto"}}, - {"%d seconds", {"%d segundo", "%d segundo", "%d segundo"}}, - {"", {"", "", ""}}, + {"%d days", {"%d araw", "%d (na) araw"}}, + {"%d hours", {"%d oras", "%d (na) oras"}}, + {"%d minutes", {"%d minuto", "%d (na) minuto"}}, + {"%d seconds", {"%d segundo", "%d (na) segundo"}}, + {"", {"", ""}}, }; std::shared_ptr GetLocale()