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 /bs_Cyrl | |
parent | 15e8d9841c4e3269faa135537ab14e77ae1a0a81 (diff) |
Modify to store percent prefix & suffix on translator instance ( when available )
Diffstat (limited to 'bs_Cyrl')
-rw-r--r-- | bs_Cyrl/bs_Cyrl.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bs_Cyrl/bs_Cyrl.go b/bs_Cyrl/bs_Cyrl.go index 4dcc49da..d0a3ab32 100644 --- a/bs_Cyrl/bs_Cyrl.go +++ b/bs_Cyrl/bs_Cyrl.go @@ -15,6 +15,8 @@ type bs_Cyrl struct { group []byte minus []byte percent []byte + percentPrefix []byte + percentSuffix []byte perMille []byte currencies [][]byte // idx = enum of currency code } @@ -55,8 +57,8 @@ func (bs *bs_Cyrl) CardinalPluralRule(num float64, v uint64) locales.PluralRule n := math.Abs(num) i := int64(n) f := locales.F(n, v) - iMod100 := i % 100 iMod10 := i % 10 + iMod100 := i % 100 fMod10 := f % 10 fMod100 := f % 100 |