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_NG
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_NG
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_NG')
-rw-r--r--en_NG/en_NG.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/en_NG/en_NG.go b/en_NG/en_NG.go
index af2d3c6e..cb3e4643 100644
--- a/en_NG/en_NG.go
+++ b/en_NG/en_NG.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 ", "₦", "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 ", "XCD ", "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", "₦", "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", "XCD", "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{"EAT": "East Africa Time", "UYT": "Uruguay Standard Time", "WARST": "Western Argentina Summer Time", "SRT": "Suriname Time", "BOT": "Bolivia Time", "AEDT": "Australian Eastern Daylight Time", "ACWDT": "Australian Central Western Daylight Time", "WAST": "West Africa Summer Time", "WESZ": "Western European Summer Time", "BT": "Bhutan Time", "HKT": "Hong Kong Standard Time", "WEZ": "Western European Standard Time", "OEZ": "Eastern European Standard Time", "AEST": "Australian Eastern Standard Time", "MYT": "Malaysia Time", "∅∅∅": "Brasilia Summer Time", "CDT": "Central Daylight Time", "CHADT": "Chatham Daylight Time", "NZDT": "New Zealand Daylight Time", "CST": "Central Standard Time", "PST": "Pacific Standard Time", "NZST": "New Zealand Standard Time", "CHAST": "Chatham Standard Time", "AWST": "Australian Western Standard Time", "ART": "Argentina Standard Time", "JST": "Japan Standard Time", "MEZ": "Central European Standard Time", "HADT": "Hawaii-Aleutian Daylight Time", "SGT": "Singapore Standard Time", "GYT": "Guyana Time", "LHDT": "Lord Howe Daylight Time", "CLST": "Chile Summer Time", "WART": "Western Argentina Standard Time", "ECT": "Ecuador Time", "CLT": "Chile Standard Time", "ACDT": "Australian Central Daylight Time", "GFT": "French Guiana Time", "HAST": "Hawaii-Aleutian Standard Time", "OESZ": "Eastern European Summer Time", "LHST": "Lord Howe Standard Time", "SAST": "South Africa Standard Time", "PDT": "Pacific Daylight Time", "MESZ": "Central European Summer Time", "MST": "Mountain Standard Time", "HKST": "Hong Kong Summer Time", "EST": "Eastern Standard Time", "TMST": "Turkmenistan Summer Time", "AST": "Atlantic Standard Time", "AWDT": "Australian Western Daylight Time", "JDT": "Japan Daylight Time", "WIB": "Western Indonesia Time", "GMT": "Greenwich Mean Time", "ChST": "Chamorro Standard Time", "AKST": "Alaska Standard Time", "WAT": "West Africa Standard Time", "COST": "Colombia Summer Time", "ACWST": "Australian Central Western Standard Time", "EDT": "Eastern Daylight Time", "CAT": "Central Africa Time", "HAT": "Newfoundland Daylight Time", "COT": "Colombia Standard Time", "WIT": "Eastern Indonesia Time", "MDT": "Mountain Daylight Time", "UYST": "Uruguay Summer Time", "ACST": "Australian Central Standard Time", "ARST": "Argentina Summer Time", "TMT": "Turkmenistan Standard Time", "HNT": "Newfoundland Standard Time", "VET": "Venezuela Time", "AKDT": "Alaska Daylight Time", "ADT": "Atlantic Daylight Time", "WITA": "Central Indonesia Time", "IST": "India Standard Time"},
+ timezones: map[string]string{"MESZ": "Central European Summer Time", "HKST": "Hong Kong Summer Time", "AKDT": "Alaska Daylight Time", "ADT": "Atlantic Daylight Time", "SGT": "Singapore Standard Time", "AEDT": "Australian Eastern Daylight Time", "HADT": "Hawaii-Aleutian Daylight Time", "SAST": "South Africa Standard Time", "CHADT": "Chatham Daylight Time", "AWDT": "Australian Western Daylight Time", "ChST": "Chamorro Standard Time", "EDT": "Eastern Daylight Time", "ECT": "Ecuador Time", "∅∅∅": "Peru Summer Time", "JDT": "Japan Daylight Time", "MYT": "Malaysia Time", "NZST": "New Zealand Standard Time", "MST": "Macau Standard Time", "HNT": "Newfoundland Standard Time", "HAT": "Newfoundland Daylight Time", "CLT": "Chile Standard Time", "BT": "Bhutan Time", "WIB": "Western Indonesia Time", "VET": "Venezuela Time", "TMT": "Turkmenistan Standard Time", "GYT": "Guyana Time", "UYT": "Uruguay Standard Time", "WARST": "Western Argentina Summer Time", "GFT": "French Guiana Time", "ACDT": "Australian Central Daylight Time", "EAT": "East Africa Time", "MDT": "Macau Summer Time", "OESZ": "Eastern European Summer Time", "GMT": "Greenwich Mean Time", "AEST": "Australian Eastern Standard Time", "LHST": "Lord Howe Standard Time", "PST": "Pacific Standard Time", "ARST": "Argentina Summer Time", "OEZ": "Eastern European Standard Time", "EST": "Eastern Standard Time", "CST": "Central Standard Time", "WIT": "Eastern Indonesia Time", "TMST": "Turkmenistan Summer Time", "WART": "Western Argentina Standard Time", "WITA": "Central Indonesia Time", "AST": "Atlantic Standard Time", "CLST": "Chile Summer Time", "ART": "Argentina Standard Time", "IST": "India Standard Time", "COT": "Colombia Standard Time", "SRT": "Suriname Time", "CDT": "Central Daylight Time", "LHDT": "Lord Howe Daylight Time", "JST": "Japan Standard Time", "CAT": "Central Africa Time", "HKT": "Hong Kong Standard Time", "UYST": "Uruguay Summer Time", "WEZ": "Western European Standard Time", "ACWST": "Australian Central Western Standard Time", "ACWDT": "Australian Central Western Daylight Time", "PDT": "Pacific Daylight Time", "WESZ": "Western European Summer Time", "WAT": "West Africa Standard Time", "MEZ": "Central European Standard Time", "NZDT": "New Zealand Daylight Time", "CHAST": "Chatham Standard Time", "AWST": "Australian Western Standard Time", "WAST": "West Africa Summer Time", "COST": "Colombia Summer Time", "HAST": "Hawaii-Aleutian Standard Time", "ACST": "Australian Central Standard Time", "BOT": "Bolivia Time", "AKST": "Alaska Standard Time"},
}
}
@@ -112,8 +112,8 @@ func (en *en_NG) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
func (en *en_NG) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
n := math.Abs(num)
- nMod10 := math.Mod(n, 10)
nMod100 := math.Mod(n, 100)
+ nMod10 := math.Mod(n, 10)
if nMod10 == 1 && nMod100 != 11 {
return locales.PluralRuleOne