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
path: root/en_KN
diff options
context:
space:
mode:
authorDean Karn <Dean.Karn@metricaid.com>2016-11-08 19:14:13 +0300
committerDean Karn <Dean.Karn@metricaid.com>2016-11-08 19:14:13 +0300
commit7832011dcf5c8b82caa7d6b379c5df17d5681fea (patch)
treeb2feec7ef734b652acf3ac50d3bf8f90623eba63 /en_KN
parent23da3897c15437bd43dc8d2bc5f49ac4849e6c32 (diff)
Correct some issues + Add Russian testsv0.10.2
- corrected handling of single quite in date formats, index was off causing quotes to appear in text - corrected bug in plurals rules mod != rules were generating mod10 < 12 && mod10 >14, when it should be (mod10 < 12 || mod10 > 14) - added code to sort plural rules, no real issue just now print in order - override russian percent format CLDR contains space between # and % but should be no space. Russian tests were added, thanks @nikolay-turpitko. - updated tests to cover 100% of range rules.
Diffstat (limited to 'en_KN')
-rw-r--r--en_KN/en_KN.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/en_KN/en_KN.go b/en_KN/en_KN.go
index ad57227e..b26be090 100644
--- a/en_KN/en_KN.go
+++ b/en_KN/en_KN.go
@@ -55,7 +55,7 @@ func New() locales.Translator {
perMille: "‰",
timeSeparator: ":",
inifinity: "∞",
- currencies: []string{"ADP ", "AED ", "AFA ", "AFN ", "ALK ", "ALL ", "AMD ", "ANG ", "AOA ", "AOK ", "AON ", "AOR ", "ARA ", "ARL ", "ARM ", "ARP ", "ARS ", "ATS ", "AUD ", "AWG ", "AZM ", "AZN ", "BAD ", "BAM ", "BAN ", "BBD ", "BDT ", "BEC ", "BEF ", "BEL ", "BGL ", "BGM ", "BGN ", "BGO ", "BHD ", "BIF ", "BMD ", "BND ", "BOB ", "BOL ", "BOP ", "BOV ", "BRB ", "BRC ", "BRE ", "BRL ", "BRN ", "BRR ", "BRZ ", "BSD ", "BTN ", "BUK ", "BWP ", "BYB ", "BYR ", "BZD ", "CAD ", "CDF ", "CHE ", "CHF ", "CHW ", "CLE ", "CLF ", "CLP ", "CNX ", "CNY ", "COP ", "COU ", "CRC ", "CSD ", "CSK ", "CUC ", "CUP ", "CVE ", "CYP ", "CZK ", "DDM ", "DEM ", "DJF ", "DKK ", "DOP ", "DZD ", "ECS ", "ECV ", "EEK ", "EGP ", "ERN ", "ESA ", "ESB ", "ESP ", "ETB ", "EUR ", "FIM ", "FJD ", "FKP ", "FRF ", "GBP ", "GEK ", "GEL ", "GHC ", "GHS ", "GIP ", "GMD ", "GNF ", "GNS ", "GQE ", "GRD ", "GTQ ", "GWE ", "GWP ", "GYD ", "HKD ", "HNL ", "HRD ", "HRK ", "HTG ", "HUF ", "IDR ", "IEP ", "ILP ", "ILR ", "ILS ", "INR ", "IQD ", "IRR ", "ISJ ", "ISK ", "ITL ", "JMD ", "JOD ", "JPY ", "KES ", "KGS ", "KHR ", "KMF ", "KPW ", "KRH ", "KRO ", "KRW ", "KWD ", "KYD ", "KZT ", "LAK ", "LBP ", "LKR ", "LRD ", "LSL ", "LTL ", "LTT ", "LUC ", "LUF ", "LUL ", "LVL ", "LVR ", "LYD ", "MAD ", "MAF ", "MCF ", "MDC ", "MDL ", "MGA ", "MGF ", "MKD ", "MKN ", "MLF ", "MMK ", "MNT ", "MOP ", "MRO ", "MTL ", "MTP ", "MUR ", "MVP ", "MVR ", "MWK ", "MXN ", "MXP ", "MXV ", "MYR ", "MZE ", "MZM ", "MZN ", "NAD ", "NGN ", "NIC ", "NIO ", "NLG ", "NOK ", "NPR ", "NZD ", "OMR ", "PAB ", "PEI ", "PEN ", "PES ", "PGK ", "PHP ", "PKR ", "PLN ", "PLZ ", "PTE ", "PYG ", "QAR ", "RHD ", "ROL ", "RON ", "RSD ", "RUB ", "RUR ", "RWF ", "SAR ", "SBD ", "SCR ", "SDD ", "SDG ", "SDP ", "SEK ", "SGD ", "SHP ", "SIT ", "SKK ", "SLL ", "SOS ", "SRD ", "SRG ", "SSP ", "STD ", "SUR ", "SVC ", "SYP ", "SZL ", "THB ", "TJR ", "TJS ", "TMM ", "TMT ", "TND ", "TOP ", "TPE ", "TRL ", "TRY ", "TTD ", "TWD ", "TZS ", "UAH ", "UAK ", "UGS ", "UGX ", "USD ", "USN ", "USS ", "UYI ", "UYP ", "UYU ", "UZS ", "VEB ", "VEF ", "VND ", "VNN ", "VUV ", "WST ", "XAF ", "XAG ", "XAU ", "XBA ", "XBB ", "XBC ", "XBD ", "$", "XDR ", "XEU ", "XFO ", "XFU ", "XOF ", "XPD ", "XPF ", "XPT ", "XRE ", "XSU ", "XTS ", "XUA ", "XXX ", "YDD ", "YER ", "YUD ", "YUM ", "YUN ", "YUR ", "ZAL ", "ZAR ", "ZMK ", "ZMW ", "ZRN ", "ZRZ ", "ZWD ", "ZWL ", "ZWR "},
+ currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "$", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
currencyNegativePrefix: "(",
currencyNegativeSuffix: ")",
monthsAbbreviated: []string{"", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"},
@@ -71,7 +71,7 @@ func New() locales.Translator {
erasAbbreviated: []string{"BC", "AD"},
erasNarrow: []string{"B", "A"},
erasWide: []string{"Before Christ", "Anno Domini"},
- timezones: map[string]string{"HADT": "Hawaii-Aleutian Daylight Time", "CAT": "Central Africa Time", "COST": "Colombia Summer Time", "MST": "Macau Standard Time", "WIT": "Eastern Indonesia Time", "LHST": "Lord Howe Standard Time", "ACWDT": "Australian Central Western Daylight Time", "ART": "Argentina Standard Time", "IST": "India Standard Time", "WAST": "West Africa Summer Time", "CHAST": "Chatham Standard Time", "ECT": "Ecuador Time", "ADT": "Atlantic Daylight Time", "MEZ": "Central European Standard Time", "BT": "Bhutan Time", "CLT": "Chile Standard Time", "CLST": "Chile Summer Time", "CHADT": "Chatham Daylight Time", "EDT": "Eastern Daylight Time", "ARST": "Argentina Summer Time", "MESZ": "Central European Summer Time", "WESZ": "Western European Summer Time", "SGT": "Singapore Standard Time", "ACWST": "Australian Central Western Standard Time", "WEZ": "Western European Standard Time", "∅∅∅": "Azores Summer Time", "MDT": "Macau Summer Time", "AKST": "Alaska Standard Time", "TMT": "Turkmenistan Standard Time", "HNT": "Newfoundland Standard Time", "OESZ": "Eastern European Summer Time", "ACDT": "Australian Central Daylight Time", "AST": "Atlantic Standard Time", "AWST": "Australian Western Standard Time", "EST": "Eastern Standard Time", "PST": "Pacific Standard Time", "HAT": "Newfoundland Daylight Time", "OEZ": "Eastern European Standard Time", "HKST": "Hong Kong Summer Time", "UYST": "Uruguay Summer Time", "CST": "Central Standard Time", "ACST": "Australian Central Standard Time", "JST": "Japan Standard Time", "WITA": "Central Indonesia Time", "ChST": "Chamorro Standard Time", "EAT": "East Africa Time", "MYT": "Malaysia Time", "JDT": "Japan Daylight Time", "PDT": "Pacific Daylight Time", "HAST": "Hawaii-Aleutian Standard Time", "GYT": "Guyana Time", "CDT": "Central Daylight Time", "SRT": "Suriname Time", "NZST": "New Zealand Standard Time", "NZDT": "New Zealand Daylight Time", "WAT": "West Africa Standard Time", "AEST": "Australian Eastern Standard Time", "UYT": "Uruguay Standard Time", "GFT": "French Guiana Time", "BOT": "Bolivia Time", "SAST": "South Africa Standard Time", "TMST": "Turkmenistan Summer Time", "AEDT": "Australian Eastern Daylight Time", "LHDT": "Lord Howe Daylight Time", "WART": "Western Argentina Standard Time", "AKDT": "Alaska Daylight Time", "GMT": "Greenwich Mean Time", "WARST": "Western Argentina Summer Time", "HKT": "Hong Kong Standard Time", "VET": "Venezuela Time", "AWDT": "Australian Western Daylight Time", "WIB": "Western Indonesia Time", "COT": "Colombia Standard Time"},
+ timezones: map[string]string{"HNT": "Newfoundland Standard Time", "JST": "Japan Standard Time", "HADT": "Hawaii-Aleutian Daylight Time", "VET": "Venezuela Time", "LHDT": "Lord Howe Daylight Time", "UYT": "Uruguay Standard Time", "WEZ": "Western European Standard Time", "COST": "Colombia Summer Time", "ACWDT": "Australian Central Western Daylight Time", "ACST": "Australian Central Standard Time", "PDT": "Pacific Daylight Time", "NZST": "New Zealand Standard Time", "CLST": "Chile Summer Time", "GFT": "French Guiana Time", "CDT": "Central Daylight Time", "CHAST": "Chatham Standard Time", "EDT": "Eastern Daylight Time", "AWDT": "Australian Western Daylight Time", "MST": "Macau Standard Time", "MDT": "Macau Summer Time", "NZDT": "New Zealand Daylight Time", "HAT": "Newfoundland Daylight Time", "TMT": "Turkmenistan Standard Time", "AKST": "Alaska Standard Time", "AKDT": "Alaska Daylight Time", "WAST": "West Africa Summer Time", "HAST": "Hawaii-Aleutian Standard Time", "BT": "Bhutan Time", "MESZ": "Central European Summer Time", "JDT": "Japan Daylight Time", "CHADT": "Chatham Daylight Time", "GMT": "Greenwich Mean Time", "WITA": "Central Indonesia Time", "WIT": "Eastern Indonesia Time", "AST": "Atlantic Standard Time", "CLT": "Chile Standard Time", "SGT": "Singapore Standard Time", "ART": "Argentina Standard Time", "EAT": "East Africa Time", "LHST": "Lord Howe Standard Time", "MYT": "Malaysia Time", "WIB": "Western Indonesia Time", "AEDT": "Australian Eastern Daylight Time", "WARST": "Western Argentina Summer Time", "EST": "Eastern Standard Time", "ACWST": "Australian Central Western Standard Time", "WAT": "West Africa Standard Time", "ChST": "Chamorro Standard Time", "OEZ": "Eastern European Standard Time", "UYST": "Uruguay Summer Time", "PST": "Pacific Standard Time", "OESZ": "Eastern European Summer Time", "COT": "Colombia Standard Time", "WART": "Western Argentina Standard Time", "WESZ": "Western European Summer Time", "SRT": "Suriname Time", "SAST": "South Africa Standard Time", "CAT": "Central Africa Time", "TMST": "Turkmenistan Summer Time", "GYT": "Guyana Time", "HKT": "Hong Kong Standard Time", "MEZ": "Central European Standard Time", "∅∅∅": "Peru Summer Time", "IST": "India Standard Time", "ARST": "Argentina Summer Time", "AEST": "Australian Eastern Standard Time", "ACDT": "Australian Central Daylight Time", "ECT": "Ecuador Time", "ADT": "Atlantic Daylight Time", "HKST": "Hong Kong Summer Time", "BOT": "Bolivia Time", "CST": "Central Standard Time", "AWST": "Australian Western Standard Time"},
}
}
@@ -112,8 +112,8 @@ func (en *en_KN) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
func (en *en_KN) 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