diff options
Diffstat (limited to 'en_PG/en_PG.go')
-rw-r--r-- | en_PG/en_PG.go | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/en_PG/en_PG.go b/en_PG/en_PG.go index 17882640..6d745ea5 100644 --- a/en_PG/en_PG.go +++ b/en_PG/en_PG.go @@ -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{"MESZ": "Central European Summer Time", "JST": "Japan Standard Time", "CLT": "Chile Standard Time", "TMST": "Turkmenistan Summer Time", "HENOMX": "Northwest Mexico Daylight Time", "SAST": "South Africa Standard Time", "LHDT": "Lord Howe Daylight Time", "EST": "Eastern Standard Time", "HECU": "Cuba Daylight Time", "CHADT": "Chatham Daylight Time", "CLST": "Chile Summer Time", "EDT": "Eastern Daylight Time", "HKST": "Hong Kong Summer Time", "ACST": "Australian Central Standard Time", "HNEG": "East Greenland Standard Time", "HEEG": "East Greenland Summer Time", "HNPMX": "Mexican Pacific Standard Time", "GYT": "Guyana Time", "HAST": "Hawaii-Aleutian Standard Time", "MYT": "Malaysia Time", "WARST": "Western Argentina Summer Time", "AEST": "Australian Eastern Standard Time", "CHAST": "Chatham Standard Time", "HKT": "Hong Kong Standard Time", "COST": "Colombia Summer Time", "AWDT": "Australian Western Daylight Time", "ACWST": "Australian Central Western Standard Time", "OEZ": "Eastern European Standard Time", "TMT": "Turkmenistan Standard Time", "WAT": "West Africa Standard Time", "AEDT": "Australian Eastern Daylight Time", "∅∅∅": "Azores Summer Time", "IST": "India Standard Time", "HEOG": "West Greenland Summer Time", "WEZ": "Western European Standard Time", "ART": "Argentina Standard Time", "AKST": "Alaska Standard Time", "HEPMX": "Mexican Pacific Daylight Time", "EAT": "East Africa Time", "ACWDT": "Australian Central Western Daylight Time", "MDT": "Macau Summer Time", "HNNOMX": "Northwest Mexico Standard Time", "GFT": "French Guiana Time", "WIT": "Eastern Indonesia Time", "PST": "Pacific Standard Time", "ECT": "Ecuador Time", "MST": "Macau Standard Time", "ARST": "Argentina Summer Time", "AKDT": "Alaska Daylight Time", "CDT": "Central Daylight Time", "AST": "Atlantic Standard Time", "WART": "Western Argentina Standard Time", "BT": "Bhutan Time", "HNT": "Newfoundland Standard Time", "NZDT": "New Zealand Daylight Time", "JDT": "Japan Daylight Time", "OESZ": "Eastern European Summer Time", "ChST": "Chamorro Standard Time", "UYT": "Uruguay Standard Time", "WIB": "Western Indonesia Time", "AWST": "Australian Western Standard Time", "SGT": "Singapore Standard Time", "WAST": "West Africa Summer Time", "GMT": "Greenwich Mean Time", "UYST": "Uruguay Summer Time", "HEPM": "St. Pierre & Miquelon Daylight Time", "PDT": "Pacific Daylight Time", "VET": "Venezuela Time", "HNOG": "West Greenland Standard Time", "HNCU": "Cuba Standard Time", "BOT": "Bolivia Time", "WESZ": "Western European Summer Time", "ACDT": "Australian Central Daylight Time", "HNPM": "St. Pierre & Miquelon Standard Time", "LHST": "Lord Howe Standard Time", "NZST": "New Zealand Standard Time", "WITA": "Central Indonesia Time", "CST": "Central Standard Time", "HADT": "Hawaii-Aleutian Daylight Time", "CAT": "Central Africa Time", "MEZ": "Central European Standard Time", "COT": "Colombia Standard Time", "SRT": "Suriname Time", "ADT": "Atlantic Daylight Time", "HAT": "Newfoundland Daylight Time"}, + timezones: map[string]string{"COT": "Colombia Standard Time", "AKST": "Alaska Standard Time", "PST": "Pacific Standard Time", "HNNOMX": "Northwest Mexico Standard Time", "LHST": "Lord Howe Standard Time", "AEST": "Australian Eastern Standard Time", "ART": "Argentina Standard Time", "SAST": "South Africa Standard Time", "SRT": "Suriname Time", "WIT": "Eastern Indonesia Time", "HNOG": "West Greenland Standard Time", "WEZ": "Western European Standard Time", "ACWST": "Australian Central Western Standard Time", "NZST": "New Zealand Standard Time", "PDT": "Pacific Daylight Time", "MESZ": "Central European Summer Time", "HEEG": "East Greenland Summer Time", "EST": "Eastern Standard Time", "ACST": "Australian Central Standard Time", "SGT": "Singapore Standard Time", "HEPMX": "Mexican Pacific Daylight Time", "WAT": "West Africa Standard Time", "HKT": "Hong Kong Standard Time", "GYT": "Guyana Time", "WIB": "Western Indonesia Time", "HNCU": "Cuba Standard Time", "ADT": "Atlantic Daylight Time", "HNT": "Newfoundland Standard Time", "ACDT": "Australian Central Daylight Time", "HECU": "Cuba Daylight Time", "BOT": "Bolivia Time", "AKDT": "Alaska Daylight Time", "WESZ": "Western European Summer Time", "UYST": "Uruguay Summer Time", "JST": "Japan Standard Time", "CLT": "Chile Standard Time", "HNPMX": "Mexican Pacific Standard Time", "AWST": "Australian Western Standard Time", "HAST": "Hawaii-Aleutian Standard Time", "HNEG": "East Greenland Standard Time", "GFT": "French Guiana Time", "CHAST": "Chatham Standard Time", "CST": "Central Standard Time", "WARST": "Western Argentina Summer Time", "AST": "Atlantic Standard Time", "HEOG": "West Greenland Summer Time", "ACWDT": "Australian Central Western Daylight Time", "HENOMX": "Northwest Mexico Daylight Time", "HEPM": "St. Pierre & Miquelon Daylight Time", "VET": "Venezuela Time", "CLST": "Chile Summer Time", "COST": "Colombia Summer Time", "MEZ": "Central European Standard Time", "TMST": "Turkmenistan Summer Time", "MDT": "Mountain Daylight Time", "WAST": "West Africa Summer Time", "HKST": "Hong Kong Summer Time", "EDT": "Eastern Daylight Time", "CHADT": "Chatham Daylight Time", "OEZ": "Eastern European Standard Time", "CAT": "Central Africa Time", "MYT": "Malaysia Time", "HADT": "Hawaii-Aleutian Daylight Time", "NZDT": "New Zealand Daylight Time", "TMT": "Turkmenistan Standard Time", "JDT": "Japan Daylight Time", "ARST": "Argentina Summer Time", "EAT": "East Africa Time", "HNPM": "St. Pierre & Miquelon Standard Time", "UYT": "Uruguay Standard Time", "AWDT": "Australian Western Daylight Time", "LHDT": "Lord Howe Daylight Time", "MST": "Mountain Standard Time", "WART": "Western Argentina Standard Time", "ECT": "Ecuador Time", "ChST": "Chamorro Standard Time", "HAT": "Newfoundland Daylight Time", "GMT": "Greenwich Mean Time", "BT": "Bhutan Time", "WITA": "Central Indonesia Time", "OESZ": "Eastern European Summer Time", "IST": "India Standard Time", "∅∅∅": "Azores Summer Time", "AEDT": "Australian Eastern Daylight Time", "CDT": "Central Daylight Time"}, } } @@ -112,8 +112,8 @@ func (en *en_PG) CardinalPluralRule(num float64, v uint64) locales.PluralRule { func (en *en_PG) 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 @@ -201,6 +201,21 @@ func (en *en_PG) WeekdaysWide() []string { return en.daysWide } +// Decimal returns the decimal point of number +func (en *en_PG) Decimal() string { + return en.decimal +} + +// Group returns the group of number +func (en *en_PG) Group() string { + return en.group +} + +// Group returns the minus sign of number +func (en *en_PG) Minus() string { + return en.minus +} + // FmtNumber returns 'num' with digits/precision of 'v' for 'en_PG' and handles both Whole and Real numbers based on 'v' func (en *en_PG) FmtNumber(num float64, v uint64) string { @@ -423,7 +438,7 @@ func (en *en_PG) FmtDateShort(t time.Time) string { if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) } else { - b = strconv.AppendInt(b, int64(t.Year()*-1), 10) + b = strconv.AppendInt(b, int64(-t.Year()), 10) } return string(b) @@ -442,7 +457,7 @@ func (en *en_PG) FmtDateMedium(t time.Time) string { if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) } else { - b = strconv.AppendInt(b, int64(t.Year()*-1), 10) + b = strconv.AppendInt(b, int64(-t.Year()), 10) } return string(b) @@ -461,7 +476,7 @@ func (en *en_PG) FmtDateLong(t time.Time) string { if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) } else { - b = strconv.AppendInt(b, int64(t.Year()*-1), 10) + b = strconv.AppendInt(b, int64(-t.Year()), 10) } return string(b) @@ -482,7 +497,7 @@ func (en *en_PG) FmtDateFull(t time.Time) string { if t.Year() > 0 { b = strconv.AppendInt(b, int64(t.Year()), 10) } else { - b = strconv.AppendInt(b, int64(t.Year()*-1), 10) + b = strconv.AppendInt(b, int64(-t.Year()), 10) } return string(b) |