Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoeybloggs <Dean.Karn@gmail.com>2016-08-15 05:59:51 +0300
committerjoeybloggs <Dean.Karn@gmail.com>2016-08-15 05:59:51 +0300
commit7a50918c70b219070868048aa533f5b142880103 (patch)
tree3399743aeba4da4c909d0bb6766dcd12b6739d21 /az_Latn_AZ
parent15e8d9841c4e3269faa135537ab14e77ae1a0a81 (diff)
Modify to store percent prefix & suffix on translator instance ( when available )
Diffstat (limited to 'az_Latn_AZ')
-rw-r--r--az_Latn_AZ/az_Latn_AZ.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/az_Latn_AZ/az_Latn_AZ.go b/az_Latn_AZ/az_Latn_AZ.go
index 78244b6c..0fd6d166 100644
--- a/az_Latn_AZ/az_Latn_AZ.go
+++ b/az_Latn_AZ/az_Latn_AZ.go
@@ -15,6 +15,8 @@ type az_Latn_AZ struct {
group []byte
minus []byte
percent []byte
+ percentPrefix []byte
+ percentSuffix []byte
perMille []byte
currencies [][]byte // idx = enum of currency code
}
@@ -66,9 +68,9 @@ func (az *az_Latn_AZ) OrdinalPluralRule(num float64, v uint64) locales.PluralRul
n := math.Abs(num)
i := int64(n)
+ iMod10 := i % 10
iMod100 := i % 100
iMod1000 := i % 1000
- iMod10 := i % 10
if (iMod10 == 1 || iMod10 == 2 || iMod10 == 5 || iMod10 == 7 || iMod10 == 8) || (iMod100 == 20 || iMod100 == 50 || iMod100 == 70 || iMod100 == 80) {
return locales.PluralRuleOne