diff options
author | joeybloggs <Dean.Karn@gmail.com> | 2016-08-15 05:59:51 +0300 |
---|---|---|
committer | joeybloggs <Dean.Karn@gmail.com> | 2016-08-15 05:59:51 +0300 |
commit | 7a50918c70b219070868048aa533f5b142880103 (patch) | |
tree | 3399743aeba4da4c909d0bb6766dcd12b6739d21 /en_PK | |
parent | 15e8d9841c4e3269faa135537ab14e77ae1a0a81 (diff) |
Modify to store percent prefix & suffix on translator instance ( when available )
Diffstat (limited to 'en_PK')
-rw-r--r-- | en_PK/en_PK.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/en_PK/en_PK.go b/en_PK/en_PK.go index 8324cb8a..c04ee4c1 100644 --- a/en_PK/en_PK.go +++ b/en_PK/en_PK.go @@ -15,6 +15,8 @@ type en_PK struct { group []byte minus []byte percent []byte + percentPrefix []byte + percentSuffix []byte perMille []byte currencies [][]byte // idx = enum of currency code } @@ -66,8 +68,8 @@ func (en *en_PK) CardinalPluralRule(num float64, v uint64) locales.PluralRule { func (en *en_PK) OrdinalPluralRule(num float64, v uint64) locales.PluralRule { n := math.Abs(num) - nMod100 := math.Mod(n, 100) nMod10 := math.Mod(n, 10) + nMod100 := math.Mod(n, 100) if nMod10 == 1 && nMod100 != 11 { return locales.PluralRuleOne |