From f7b6766d9d0c7bc543134a6af24ea2d6c4874464 Mon Sep 17 00:00:00 2001 From: Will Gorick Date: Fri, 13 Sep 2019 11:38:07 -0400 Subject: [PATCH] Adding plural support for Malay --- po/plural.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/po/plural.go b/po/plural.go index 8124b3d..10f04be 100644 --- a/po/plural.go +++ b/po/plural.go @@ -46,6 +46,7 @@ var langNames = map[string]string{ "pl": "Polish", "sl": "Slovenian", "ar": "Arabic", + "ms": "Malay", } // TODO: Fall back to these if Plural-Forms is not specified. @@ -90,6 +91,7 @@ var pluralExprs = map[string]string{ "pl": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);", "sl": "nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);", "ar": "nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5);", + "ms": "nplurals=1; plural=0;", } // pluralSelectors contains a lookup from space-stripped plural forms strings to