diff options
Diffstat (limited to 'en_AU')
-rw-r--r-- | en_AU/en_AU.go | 82 |
1 files changed, 60 insertions, 22 deletions
diff --git a/en_AU/en_AU.go b/en_AU/en_AU.go index da494e5a..bcc904db 100644 --- a/en_AU/en_AU.go +++ b/en_AU/en_AU.go @@ -53,9 +53,9 @@ func New() locales.Translator { minus: "-", percent: "%", perMille: "‰", - timeSeparator: ":", + timeSeparator: ".", inifinity: "∞", - currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "$", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "Tk", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "$b", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "₱", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "£", "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", "Kr", "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", "Gs", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "Rs", "SDD", "SDG", "SDP", "Kr", "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", "$U", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "CFP", "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", "$", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "Tk", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "$b", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNH", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "₱", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "£", "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", "Kr", "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", "Gs", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "Rs", "SDD", "SDG", "SDP", "Kr", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "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", "$U", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "CFP", "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{"CAT": "Central Africa Time", "WEZ": "Western European Standard Time", "CHADT": "Chatham Daylight Time", "JST": "Japan Standard Time", "WART": "Western Argentina Standard Time", "WARST": "Western Argentina Summer Time", "CLT": "Chile Standard Time", "WITA": "Central Indonesia Time", "WAT": "West Africa Standard Time", "HEEG": "East Greenland Summer Time", "CHAST": "Chatham Standard Time", "SGT": "Singapore Standard Time", "AWST": "Australian Western Standard Time", "MYT": "Malaysia Time", "NZDT": "New Zealand Daylight Time", "HKT": "Hong Kong Standard Time", "ChST": "Chamorro Standard Time", "LHDT": "Lord Howe Daylight Time", "VET": "Venezuela Time", "EST": "Eastern Standard Time", "EDT": "Eastern Daylight Time", "HEPMX": "Mexican Pacific Daylight Time", "MEZ": "Central European Standard Time", "NZST": "New Zealand Standard Time", "JDT": "Japan Summer Time", "ADT": "Atlantic Daylight Time", "AEST": "Australian Eastern Standard Time", "AEDT": "Australian Eastern Daylight Time", "SAST": "South Africa Standard Time", "HKST": "Hong Kong Summer Time", "CLST": "Chile Summer Time", "OESZ": "Eastern European Summer Time", "ART": "Argentina Standard Time", "HNOG": "West Greenland Standard Time", "WAST": "West Africa Summer Time", "HAT": "Newfoundland Daylight Time", "AKST": "Alaska Standard Time", "SRT": "Suriname Time", "LHST": "Lord Howe Standard Time", "AST": "Atlantic Standard Time", "ACWDT": "Australian Central Western Daylight Time", "HAST": "Hawaii-Aleutian Standard Time", "HNT": "Newfoundland Standard Time", "ACST": "Australian Central Standard Time", "GMT": "Greenwich Mean Time", "WIB": "Western Indonesia Time", "PST": "Pacific Standard Time", "HNCU": "Cuba Standard Time", "TMT": "Turkmenistan Standard Time", "OEZ": "Eastern European Standard Time", "HNEG": "East Greenland Standard Time", "COT": "Colombia Standard Time", "MDT": "Macau Summer Time", "AWDT": "Australian Western Daylight Time", "TMST": "Turkmenistan Summer Time", "MESZ": "Central European Summer Time", "COST": "Colombia Summer Time", "GFT": "French Guiana Time", "BT": "Bhutan Time", "CST": "Central Standard Time", "CDT": "Central Daylight Time", "UYT": "Uruguay Standard Time", "∅∅∅": "Amazon Summer Time", "WESZ": "Western European Summer Time", "PDT": "Pacific Daylight Time", "HEPM": "St. Pierre & Miquelon Daylight Time", "ARST": "Argentina Summer Time", "HEOG": "West Greenland Summer Time", "HECU": "Cuba Daylight Time", "HNPM": "St. Pierre & Miquelon Standard Time", "HENOMX": "Northwest Mexico Daylight Time", "IST": "India Standard Time", "HNNOMX": "Northwest Mexico Standard Time", "ECT": "Ecuador Time", "BOT": "Bolivia Time", "MST": "Macau Standard Time", "UYST": "Uruguay Summer Time", "WIT": "Eastern Indonesia Time", "HADT": "Hawaii-Aleutian Daylight Time", "ACDT": "Australian Central Daylight Time", "HNPMX": "Mexican Pacific Standard Time", "ACWST": "Australian Central Western Standard Time", "EAT": "Eastern Africa Time", "GYT": "Guyana Time", "AKDT": "Alaska Daylight Time"}, + timezones: map[string]string{"ACWDT": "Australian Central Western Daylight Time", "ADT": "Atlantic Daylight Time", "WAT": "West Africa Standard Time", "NZST": "New Zealand Standard Time", "ChST": "Chamorro Standard Time", "HNT": "Newfoundland Standard Time", "HAT": "Newfoundland Daylight Time", "HADT": "Hawaii-Aleutian Daylight Time", "HEPMX": "Mexican Pacific Daylight Time", "ACDT": "Australian Central Daylight Time", "COT": "Colombia Standard Time", "AKST": "Alaska Standard Time", "ACWST": "Australian Central Western Standard Time", "MEZ": "Central European Standard Time", "GMT": "Greenwich Mean Time", "AST": "Atlantic Standard Time", "AEST": "Australian Eastern Standard Time", "WIB": "Western Indonesia Time", "CLT": "Chile Standard Time", "ART": "Argentina Standard Time", "CHAST": "Chatham Standard Time", "JDT": "Japan Summer Time", "AKDT": "Alaska Daylight Time", "HEOG": "West Greenland Summer Time", "WITA": "Central Indonesia Time", "CAT": "Central Africa Time", "OESZ": "Eastern European Summer Time", "CHADT": "Chatham Daylight Time", "CST": "Central Standard Time", "EDT": "Eastern Daylight Time", "BT": "Bhutan Time", "NZDT": "New Zealand Daylight Time", "MESZ": "Central European Summer Time", "UYST": "Uruguay Summer Time", "HNCU": "Cuba Standard Time", "MST": "Mountain Standard Time", "SAST": "South Africa Standard Time", "HEPM": "St. Pierre & Miquelon Daylight Time", "MDT": "Mountain Daylight Time", "BOT": "Bolivia Time", "ACST": "Australian Central Standard Time", "SRT": "Suriname Time", "CDT": "Central Daylight Time", "LHST": "Lord Howe Standard Time", "HNPM": "St. Pierre & Miquelon Standard Time", "HKST": "Hong Kong Summer Time", "WARST": "Western Argentina Summer Time", "PDT": "Pacific Daylight Time", "AWDT": "Australian Western Daylight Time", "SGT": "Singapore Standard Time", "WIT": "Eastern Indonesia Time", "HAST": "Hawaii-Aleutian Standard Time", "IST": "India Standard Time", "WART": "Western Argentina Standard Time", "CLST": "Chile Summer Time", "AEDT": "Australian Eastern Daylight Time", "GFT": "French Guiana Time", "HNEG": "East Greenland Standard Time", "HKT": "Hong Kong Standard Time", "TMST": "Turkmenistan Summer Time", "WEZ": "Western European Standard Time", "JST": "Japan Standard Time", "ECT": "Ecuador Time", "HENOMX": "Northwest Mexico Daylight Time", "ARST": "Argentina Summer Time", "GYT": "Guyana Time", "HECU": "Cuba Daylight Time", "PST": "Pacific Standard Time", "HNOG": "West Greenland Standard Time", "HEEG": "East Greenland Summer Time", "LHDT": "Lord Howe Daylight Time", "HNNOMX": "Northwest Mexico Standard Time", "COST": "Colombia Summer Time", "UYT": "Uruguay Standard Time", "AWST": "Australian Western Standard Time", "MYT": "Malaysia Time", "EST": "Eastern Standard Time", "WESZ": "Western European Summer Time", "VET": "Venezuela Time", "EAT": "Eastern Africa Time", "TMT": "Turkmenistan Standard Time", "OEZ": "Eastern European Standard Time", "∅∅∅": "Brasilia Summer Time", "HNPMX": "Mexican Pacific Standard Time", "WAST": "West Africa Summer Time"}, } } @@ -112,8 +112,8 @@ func (en *en_AU) CardinalPluralRule(num float64, v uint64) locales.PluralRule { func (en *en_AU) 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 @@ -439,10 +439,10 @@ func (en *en_AU) FmtDateMedium(t time.Time) string { b := make([]byte, 0, 32) + b = strconv.AppendInt(b, int64(t.Day()), 10) + b = append(b, []byte{0x20}...) b = append(b, en.monthsAbbreviated[t.Month()]...) b = append(b, []byte{0x20}...) - b = strconv.AppendInt(b, int64(t.Day()), 10) - b = append(b, []byte{0x2c, 0x20}...) if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) @@ -458,10 +458,10 @@ func (en *en_AU) FmtDateLong(t time.Time) string { b := make([]byte, 0, 32) + b = strconv.AppendInt(b, int64(t.Day()), 10) + b = append(b, []byte{0x20}...) b = append(b, en.monthsWide[t.Month()]...) b = append(b, []byte{0x20}...) - b = strconv.AppendInt(b, int64(t.Day()), 10) - b = append(b, []byte{0x2c, 0x20}...) if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) @@ -479,10 +479,10 @@ func (en *en_AU) FmtDateFull(t time.Time) string { b = append(b, en.daysWide[t.Weekday()]...) b = append(b, []byte{0x2c, 0x20}...) + b = strconv.AppendInt(b, int64(t.Day()), 10) + b = append(b, []byte{0x20}...) b = append(b, en.monthsWide[t.Month()]...) b = append(b, []byte{0x20}...) - b = strconv.AppendInt(b, int64(t.Day()), 10) - b = append(b, []byte{0x2c, 0x20}...) if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) @@ -498,11 +498,13 @@ func (en *en_AU) FmtTimeShort(t time.Time) string { b := make([]byte, 0, 32) - if t.Hour() < 10 { - b = append(b, '0') + h := t.Hour() + + if h > 12 { + h -= 12 } - b = strconv.AppendInt(b, int64(t.Hour()), 10) + b = strconv.AppendInt(b, int64(h), 10) b = append(b, en.timeSeparator...) if t.Minute() < 10 { @@ -510,6 +512,13 @@ func (en *en_AU) FmtTimeShort(t time.Time) string { } b = strconv.AppendInt(b, int64(t.Minute()), 10) + b = append(b, []byte{0x20}...) + + if t.Hour() < 12 { + b = append(b, en.periodsAbbreviated[0]...) + } else { + b = append(b, en.periodsAbbreviated[1]...) + } return string(b) } @@ -519,11 +528,13 @@ func (en *en_AU) FmtTimeMedium(t time.Time) string { b := make([]byte, 0, 32) - if t.Hour() < 10 { - b = append(b, '0') + h := t.Hour() + + if h > 12 { + h -= 12 } - b = strconv.AppendInt(b, int64(t.Hour()), 10) + b = strconv.AppendInt(b, int64(h), 10) b = append(b, en.timeSeparator...) if t.Minute() < 10 { @@ -538,6 +549,13 @@ func (en *en_AU) FmtTimeMedium(t time.Time) string { } b = strconv.AppendInt(b, int64(t.Second()), 10) + b = append(b, []byte{0x20}...) + + if t.Hour() < 12 { + b = append(b, en.periodsAbbreviated[0]...) + } else { + b = append(b, en.periodsAbbreviated[1]...) + } return string(b) } @@ -547,11 +565,13 @@ func (en *en_AU) FmtTimeLong(t time.Time) string { b := make([]byte, 0, 32) - if t.Hour() < 10 { - b = append(b, '0') + h := t.Hour() + + if h > 12 { + h -= 12 } - b = strconv.AppendInt(b, int64(t.Hour()), 10) + b = strconv.AppendInt(b, int64(h), 10) b = append(b, en.timeSeparator...) if t.Minute() < 10 { @@ -568,6 +588,14 @@ func (en *en_AU) FmtTimeLong(t time.Time) string { b = strconv.AppendInt(b, int64(t.Second()), 10) b = append(b, []byte{0x20}...) + if t.Hour() < 12 { + b = append(b, en.periodsAbbreviated[0]...) + } else { + b = append(b, en.periodsAbbreviated[1]...) + } + + b = append(b, []byte{0x20}...) + tz, _ := t.Zone() b = append(b, tz...) @@ -579,11 +607,13 @@ func (en *en_AU) FmtTimeFull(t time.Time) string { b := make([]byte, 0, 32) - if t.Hour() < 10 { - b = append(b, '0') + h := t.Hour() + + if h > 12 { + h -= 12 } - b = strconv.AppendInt(b, int64(t.Hour()), 10) + b = strconv.AppendInt(b, int64(h), 10) b = append(b, en.timeSeparator...) if t.Minute() < 10 { @@ -600,6 +630,14 @@ func (en *en_AU) FmtTimeFull(t time.Time) string { b = strconv.AppendInt(b, int64(t.Second()), 10) b = append(b, []byte{0x20}...) + if t.Hour() < 12 { + b = append(b, en.periodsAbbreviated[0]...) + } else { + b = append(b, en.periodsAbbreviated[1]...) + } + + b = append(b, []byte{0x20}...) + tz, _ := t.Zone() if btz, ok := en.timezones[tz]; ok { |