OSDN Git Service

delete miner
[bytom/vapor.git] / vendor / github.com / go-playground / locales / ga_IE / ga_IE.go
1 package ga_IE
2
3 import (
4         "math"
5         "strconv"
6         "time"
7
8         "github.com/go-playground/locales"
9         "github.com/go-playground/locales/currency"
10 )
11
12 type ga_IE struct {
13         locale                 string
14         pluralsCardinal        []locales.PluralRule
15         pluralsOrdinal         []locales.PluralRule
16         pluralsRange           []locales.PluralRule
17         decimal                string
18         group                  string
19         minus                  string
20         percent                string
21         perMille               string
22         timeSeparator          string
23         inifinity              string
24         currencies             []string // idx = enum of currency code
25         currencyNegativePrefix string
26         currencyNegativeSuffix string
27         monthsAbbreviated      []string
28         monthsNarrow           []string
29         monthsWide             []string
30         daysAbbreviated        []string
31         daysNarrow             []string
32         daysShort              []string
33         daysWide               []string
34         periodsAbbreviated     []string
35         periodsNarrow          []string
36         periodsShort           []string
37         periodsWide            []string
38         erasAbbreviated        []string
39         erasNarrow             []string
40         erasWide               []string
41         timezones              map[string]string
42 }
43
44 // New returns a new instance of translator for the 'ga_IE' locale
45 func New() locales.Translator {
46         return &ga_IE{
47                 locale:                 "ga_IE",
48                 pluralsCardinal:        []locales.PluralRule{2, 3, 4, 5, 6},
49                 pluralsOrdinal:         []locales.PluralRule{2, 6},
50                 pluralsRange:           []locales.PluralRule{2, 3, 4, 5, 6},
51                 decimal:                ".",
52                 group:                  ",",
53                 minus:                  "-",
54                 percent:                "%",
55                 perMille:               "‰",
56                 timeSeparator:          ":",
57                 inifinity:              "∞",
58                 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", "BYN", "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", "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"},
59                 currencyNegativePrefix: "(",
60                 currencyNegativeSuffix: ")",
61                 monthsAbbreviated:      []string{"", "Ean", "Feabh", "Márta", "Aib", "Beal", "Meith", "Iúil", "Lún", "MFómh", "DFómh", "Samh", "Noll"},
62                 monthsNarrow:           []string{"", "E", "F", "M", "A", "B", "M", "I", "L", "M", "D", "S", "N"},
63                 monthsWide:             []string{"", "Eanáir", "Feabhra", "Márta", "Aibreán", "Bealtaine", "Meitheamh", "Iúil", "Lúnasa", "Meán Fómhair", "Deireadh Fómhair", "Samhain", "Nollaig"},
64                 daysAbbreviated:        []string{"Domh", "Luan", "Máirt", "Céad", "Déar", "Aoine", "Sath"},
65                 daysNarrow:             []string{"D", "L", "M", "C", "D", "A", "S"},
66                 daysShort:              []string{"Do", "Lu", "Má", "Cé", "Dé", "Ao", "Sa"},
67                 daysWide:               []string{"Dé Domhnaigh", "Dé Luain", "Dé Máirt", "Dé Céadaoin", "Déardaoin", "Dé hAoine", "Dé Sathairn"},
68                 periodsAbbreviated:     []string{"a.m.", "p.m."},
69                 periodsNarrow:          []string{"a", "p"},
70                 periodsWide:            []string{"a.m.", "p.m."},
71                 erasAbbreviated:        []string{"RC", "AD"},
72                 erasNarrow:             []string{"RC", "AD"},
73                 erasWide:               []string{"Roimh Chríost", "Anno Domini"},
74                 timezones:              map[string]string{"HNEG": "Am Caighdeánach Oirthear na Graonlainne", "COT": "Am Caighdeánach na Colóime", "COST": "Am Samhraidh na Colóime", "MYT": "Am na Malaeisia", "ARST": "Am Samhraidh na hAirgintíne", "ADT": "Am Samhraidh an Atlantaigh", "BOT": "Am na Bolaive", "JST": "Am Caighdeánach na Seapáine", "BT": "Am na Bútáine", "WITA": "Am Lár na hIndinéise", "WAST": "Am Samhraidh Iarthar na hAfraice", "GYT": "Am na Guáine", "WESZ": "Am Samhraidh Iarthar na hEorpa", "GMT": "Meán-Am Greenwich", "HNPMX": "Am Caighdeánach Meicsiceach an Aigéin Chiúin", "HEPMX": "Am Samhraidh Meicsiceach an Aigéin Chiúin", "MDT": "Am Samhraidh na Sléibhte", "HECU": "Am Samhraidh Chúba", "AWDT": "Am Samhraidh Iarthar na hAstráile", "TMT": "Am Caighdeánach na Tuircméanastáine", "CHAST": "Am Caighdeánach Chatham", "CHADT": "Am Samhraidh Chatham", "HNCU": "Am Caighdeánach Chúba", "MEZ": "Am Caighdeánach Lár na hEorpa", "HAST": "Am Caighdeánach Haváí-Ailiúit", "HKST": "Am Samhraidh Hong Cong", "HEEG": "Am Samhraidh Oirthear na Graonlainne", "HNPM": "Am Caighdeánach Saint-Pierre-et-Miquelon", "HEPM": "Am Samhraidh Saint-Pierre-et-Miquelon", "CDT": "Am Samhraidh Lárnach", "HNOG": "Am Caighdeánach Iarthar na Graonlainne", "AEST": "Am Caighdeánach Oirthear na hAstráile", "ART": "Am Caighdeánach na hAirgintíne", "ECT": "Am Eacuadór", "ChST": "Am Caighdeánach Seamórach", "NZST": "Am Caighdeánach na Nua-Shéalainne", "WART": "Am Caighdeánach Iarthar na hAirgintíne", "HADT": "Am Samhraidh Haváí-Ailiúit", "PDT": "Am Samhraidh an Aigéin Chiúin", "HAT": "Am Samhraidh Thalamh an Éisc", "AKST": "Am Caighdeánach Alasca", "AKDT": "Am Samhraidh Alasca", "SGT": "Am Caighdeánach Shingeapór", "ACWDT": "Am Samhraidh Mheániarthar na hAstráile", "IST": "Am Caighdeánach na hIndia", "LHST": "Am Caighdeánach Lord Howe", "HNNOMX": "Am Caighdeánach Iarthuaisceart Mheicsiceo", "JDT": "Am Samhraidh na Seapáine", "EAT": "Am Oirthear na hAfraice", "HKT": "Am Caighdeánach Hong Cong", "CLST": "Am Samhraidh na Sile", "ACST": "Am Caighdeánach Lár na hAstráile", "OEZ": "Am Caighdeánach Oirthear na hEorpa", "WIB": "Am Iarthar na hIndinéise", "WEZ": "Am Caighdeánach Iarthar na hEorpa", "WAT": "Am Caighdeánach Iarthar na hAfraice", "ACWST": "Am Caighdeánach Mheániarthar na hAstráile", "UYT": "Am Caighdeánach Uragua", "AEDT": "Am Samhraidh Oirthear na hAstráile", "HENOMX": "Am Samhraidh Iarthuaisceart Mheicsiceo", "HEOG": "Am Samhraidh Iarthar na Graonlainne", "GFT": "Am Ghuáin na Fraince", "ACDT": "Am Samhraidh Lár na hAstráile", "SRT": "Am Shuranam", "NZDT": "Am Samhraidh na Nua-Shéalainne", "TMST": "Am Samhraidh na Tuircméanastáine", "MST": "Am Caighdeánach na Sléibhte", "CST": "Am Caighdeánach Lárnach", "SAST": "Am Caighdeánach na hAfraice Theas", "EST": "Am Caighdeánach an Oirthir", "EDT": "Am Samhraidh an Oirthir", "CAT": "Am Lár na hAfraice", "AWST": "Am Caighdeánach Iarthar na hAstráile", "MESZ": "Am Samhraidh Lár na hEorpa", "VET": "Am Veiniséala", "HNT": "Am Caighdeánach Thalamh an Éisc", "CLT": "Am Caighdeánach na Sile", "UYST": "Am Samhraidh Uragua", "WIT": "Am Oirthear na hIndinéise", "WARST": "Am Samhraidh Iarthar na hAirgintíne", "LHDT": "Am Samhraidh Lord Howe", "∅∅∅": "Am Samhraidh na nAsór", "AST": "Am Caighdeánach an Atlantaigh", "PST": "Am Caighdeánach an Aigéin Chiúin", "OESZ": "Am Samhraidh Oirthear na hEorpa"},
75         }
76 }
77
78 // Locale returns the current translators string locale
79 func (ga *ga_IE) Locale() string {
80         return ga.locale
81 }
82
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'ga_IE'
84 func (ga *ga_IE) PluralsCardinal() []locales.PluralRule {
85         return ga.pluralsCardinal
86 }
87
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'ga_IE'
89 func (ga *ga_IE) PluralsOrdinal() []locales.PluralRule {
90         return ga.pluralsOrdinal
91 }
92
93 // PluralsRange returns the list of range plural rules associated with 'ga_IE'
94 func (ga *ga_IE) PluralsRange() []locales.PluralRule {
95         return ga.pluralsRange
96 }
97
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'ga_IE'
99 func (ga *ga_IE) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100
101         n := math.Abs(num)
102
103         if n == 1 {
104                 return locales.PluralRuleOne
105         } else if n == 2 {
106                 return locales.PluralRuleTwo
107         } else if n >= 3 && n <= 6 {
108                 return locales.PluralRuleFew
109         } else if n >= 7 && n <= 10 {
110                 return locales.PluralRuleMany
111         }
112
113         return locales.PluralRuleOther
114 }
115
116 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'ga_IE'
117 func (ga *ga_IE) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
118
119         n := math.Abs(num)
120
121         if n == 1 {
122                 return locales.PluralRuleOne
123         }
124
125         return locales.PluralRuleOther
126 }
127
128 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'ga_IE'
129 func (ga *ga_IE) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
130
131         start := ga.CardinalPluralRule(num1, v1)
132         end := ga.CardinalPluralRule(num2, v2)
133
134         if start == locales.PluralRuleOne && end == locales.PluralRuleTwo {
135                 return locales.PluralRuleTwo
136         } else if start == locales.PluralRuleOne && end == locales.PluralRuleFew {
137                 return locales.PluralRuleFew
138         } else if start == locales.PluralRuleOne && end == locales.PluralRuleMany {
139                 return locales.PluralRuleMany
140         } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
141                 return locales.PluralRuleOther
142         } else if start == locales.PluralRuleTwo && end == locales.PluralRuleFew {
143                 return locales.PluralRuleFew
144         } else if start == locales.PluralRuleTwo && end == locales.PluralRuleMany {
145                 return locales.PluralRuleMany
146         } else if start == locales.PluralRuleTwo && end == locales.PluralRuleOther {
147                 return locales.PluralRuleOther
148         } else if start == locales.PluralRuleFew && end == locales.PluralRuleFew {
149                 return locales.PluralRuleFew
150         } else if start == locales.PluralRuleFew && end == locales.PluralRuleMany {
151                 return locales.PluralRuleMany
152         } else if start == locales.PluralRuleFew && end == locales.PluralRuleOther {
153                 return locales.PluralRuleOther
154         } else if start == locales.PluralRuleMany && end == locales.PluralRuleMany {
155                 return locales.PluralRuleMany
156         } else if start == locales.PluralRuleMany && end == locales.PluralRuleOther {
157                 return locales.PluralRuleOther
158         } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
159                 return locales.PluralRuleOne
160         } else if start == locales.PluralRuleOther && end == locales.PluralRuleTwo {
161                 return locales.PluralRuleTwo
162         } else if start == locales.PluralRuleOther && end == locales.PluralRuleFew {
163                 return locales.PluralRuleFew
164         } else if start == locales.PluralRuleOther && end == locales.PluralRuleMany {
165                 return locales.PluralRuleMany
166         }
167
168         return locales.PluralRuleOther
169
170 }
171
172 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
173 func (ga *ga_IE) MonthAbbreviated(month time.Month) string {
174         return ga.monthsAbbreviated[month]
175 }
176
177 // MonthsAbbreviated returns the locales abbreviated months
178 func (ga *ga_IE) MonthsAbbreviated() []string {
179         return ga.monthsAbbreviated[1:]
180 }
181
182 // MonthNarrow returns the locales narrow month given the 'month' provided
183 func (ga *ga_IE) MonthNarrow(month time.Month) string {
184         return ga.monthsNarrow[month]
185 }
186
187 // MonthsNarrow returns the locales narrow months
188 func (ga *ga_IE) MonthsNarrow() []string {
189         return ga.monthsNarrow[1:]
190 }
191
192 // MonthWide returns the locales wide month given the 'month' provided
193 func (ga *ga_IE) MonthWide(month time.Month) string {
194         return ga.monthsWide[month]
195 }
196
197 // MonthsWide returns the locales wide months
198 func (ga *ga_IE) MonthsWide() []string {
199         return ga.monthsWide[1:]
200 }
201
202 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
203 func (ga *ga_IE) WeekdayAbbreviated(weekday time.Weekday) string {
204         return ga.daysAbbreviated[weekday]
205 }
206
207 // WeekdaysAbbreviated returns the locales abbreviated weekdays
208 func (ga *ga_IE) WeekdaysAbbreviated() []string {
209         return ga.daysAbbreviated
210 }
211
212 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
213 func (ga *ga_IE) WeekdayNarrow(weekday time.Weekday) string {
214         return ga.daysNarrow[weekday]
215 }
216
217 // WeekdaysNarrow returns the locales narrow weekdays
218 func (ga *ga_IE) WeekdaysNarrow() []string {
219         return ga.daysNarrow
220 }
221
222 // WeekdayShort returns the locales short weekday given the 'weekday' provided
223 func (ga *ga_IE) WeekdayShort(weekday time.Weekday) string {
224         return ga.daysShort[weekday]
225 }
226
227 // WeekdaysShort returns the locales short weekdays
228 func (ga *ga_IE) WeekdaysShort() []string {
229         return ga.daysShort
230 }
231
232 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
233 func (ga *ga_IE) WeekdayWide(weekday time.Weekday) string {
234         return ga.daysWide[weekday]
235 }
236
237 // WeekdaysWide returns the locales wide weekdays
238 func (ga *ga_IE) WeekdaysWide() []string {
239         return ga.daysWide
240 }
241
242 // Decimal returns the decimal point of number
243 func (ga *ga_IE) Decimal() string {
244         return ga.decimal
245 }
246
247 // Group returns the group of number
248 func (ga *ga_IE) Group() string {
249         return ga.group
250 }
251
252 // Group returns the minus sign of number
253 func (ga *ga_IE) Minus() string {
254         return ga.minus
255 }
256
257 // FmtNumber returns 'num' with digits/precision of 'v' for 'ga_IE' and handles both Whole and Real numbers based on 'v'
258 func (ga *ga_IE) FmtNumber(num float64, v uint64) string {
259
260         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
261         l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
262         count := 0
263         inWhole := v == 0
264         b := make([]byte, 0, l)
265
266         for i := len(s) - 1; i >= 0; i-- {
267
268                 if s[i] == '.' {
269                         b = append(b, ga.decimal[0])
270                         inWhole = true
271                         continue
272                 }
273
274                 if inWhole {
275                         if count == 3 {
276                                 b = append(b, ga.group[0])
277                                 count = 1
278                         } else {
279                                 count++
280                         }
281                 }
282
283                 b = append(b, s[i])
284         }
285
286         if num < 0 {
287                 b = append(b, ga.minus[0])
288         }
289
290         // reverse
291         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
292                 b[i], b[j] = b[j], b[i]
293         }
294
295         return string(b)
296 }
297
298 // FmtPercent returns 'num' with digits/precision of 'v' for 'ga_IE' and handles both Whole and Real numbers based on 'v'
299 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
300 func (ga *ga_IE) FmtPercent(num float64, v uint64) string {
301         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
302         l := len(s) + 3
303         b := make([]byte, 0, l)
304
305         for i := len(s) - 1; i >= 0; i-- {
306
307                 if s[i] == '.' {
308                         b = append(b, ga.decimal[0])
309                         continue
310                 }
311
312                 b = append(b, s[i])
313         }
314
315         if num < 0 {
316                 b = append(b, ga.minus[0])
317         }
318
319         // reverse
320         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
321                 b[i], b[j] = b[j], b[i]
322         }
323
324         b = append(b, ga.percent...)
325
326         return string(b)
327 }
328
329 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'ga_IE'
330 func (ga *ga_IE) FmtCurrency(num float64, v uint64, currency currency.Type) string {
331
332         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
333         symbol := ga.currencies[currency]
334         l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
335         count := 0
336         inWhole := v == 0
337         b := make([]byte, 0, l)
338
339         for i := len(s) - 1; i >= 0; i-- {
340
341                 if s[i] == '.' {
342                         b = append(b, ga.decimal[0])
343                         inWhole = true
344                         continue
345                 }
346
347                 if inWhole {
348                         if count == 3 {
349                                 b = append(b, ga.group[0])
350                                 count = 1
351                         } else {
352                                 count++
353                         }
354                 }
355
356                 b = append(b, s[i])
357         }
358
359         for j := len(symbol) - 1; j >= 0; j-- {
360                 b = append(b, symbol[j])
361         }
362
363         if num < 0 {
364                 b = append(b, ga.minus[0])
365         }
366
367         // reverse
368         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
369                 b[i], b[j] = b[j], b[i]
370         }
371
372         if int(v) < 2 {
373
374                 if v == 0 {
375                         b = append(b, ga.decimal...)
376                 }
377
378                 for i := 0; i < 2-int(v); i++ {
379                         b = append(b, '0')
380                 }
381         }
382
383         return string(b)
384 }
385
386 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'ga_IE'
387 // in accounting notation.
388 func (ga *ga_IE) FmtAccounting(num float64, v uint64, currency currency.Type) string {
389
390         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
391         symbol := ga.currencies[currency]
392         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
393         count := 0
394         inWhole := v == 0
395         b := make([]byte, 0, l)
396
397         for i := len(s) - 1; i >= 0; i-- {
398
399                 if s[i] == '.' {
400                         b = append(b, ga.decimal[0])
401                         inWhole = true
402                         continue
403                 }
404
405                 if inWhole {
406                         if count == 3 {
407                                 b = append(b, ga.group[0])
408                                 count = 1
409                         } else {
410                                 count++
411                         }
412                 }
413
414                 b = append(b, s[i])
415         }
416
417         if num < 0 {
418
419                 for j := len(symbol) - 1; j >= 0; j-- {
420                         b = append(b, symbol[j])
421                 }
422
423                 b = append(b, ga.currencyNegativePrefix[0])
424
425         } else {
426
427                 for j := len(symbol) - 1; j >= 0; j-- {
428                         b = append(b, symbol[j])
429                 }
430
431         }
432
433         // reverse
434         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
435                 b[i], b[j] = b[j], b[i]
436         }
437
438         if int(v) < 2 {
439
440                 if v == 0 {
441                         b = append(b, ga.decimal...)
442                 }
443
444                 for i := 0; i < 2-int(v); i++ {
445                         b = append(b, '0')
446                 }
447         }
448
449         if num < 0 {
450                 b = append(b, ga.currencyNegativeSuffix...)
451         }
452
453         return string(b)
454 }
455
456 // FmtDateShort returns the short date representation of 't' for 'ga_IE'
457 func (ga *ga_IE) FmtDateShort(t time.Time) string {
458
459         b := make([]byte, 0, 32)
460
461         if t.Day() < 10 {
462                 b = append(b, '0')
463         }
464
465         b = strconv.AppendInt(b, int64(t.Day()), 10)
466         b = append(b, []byte{0x2f}...)
467
468         if t.Month() < 10 {
469                 b = append(b, '0')
470         }
471
472         b = strconv.AppendInt(b, int64(t.Month()), 10)
473
474         b = append(b, []byte{0x2f}...)
475
476         if t.Year() > 0 {
477                 b = strconv.AppendInt(b, int64(t.Year()), 10)
478         } else {
479                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
480         }
481
482         return string(b)
483 }
484
485 // FmtDateMedium returns the medium date representation of 't' for 'ga_IE'
486 func (ga *ga_IE) FmtDateMedium(t time.Time) string {
487
488         b := make([]byte, 0, 32)
489
490         b = strconv.AppendInt(b, int64(t.Day()), 10)
491         b = append(b, []byte{0x20}...)
492         b = append(b, ga.monthsAbbreviated[t.Month()]...)
493         b = append(b, []byte{0x20}...)
494
495         if t.Year() > 0 {
496                 b = strconv.AppendInt(b, int64(t.Year()), 10)
497         } else {
498                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
499         }
500
501         return string(b)
502 }
503
504 // FmtDateLong returns the long date representation of 't' for 'ga_IE'
505 func (ga *ga_IE) FmtDateLong(t time.Time) string {
506
507         b := make([]byte, 0, 32)
508
509         b = strconv.AppendInt(b, int64(t.Day()), 10)
510         b = append(b, []byte{0x20}...)
511         b = append(b, ga.monthsWide[t.Month()]...)
512         b = append(b, []byte{0x20}...)
513
514         if t.Year() > 0 {
515                 b = strconv.AppendInt(b, int64(t.Year()), 10)
516         } else {
517                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
518         }
519
520         return string(b)
521 }
522
523 // FmtDateFull returns the full date representation of 't' for 'ga_IE'
524 func (ga *ga_IE) FmtDateFull(t time.Time) string {
525
526         b := make([]byte, 0, 32)
527
528         b = append(b, ga.daysWide[t.Weekday()]...)
529         b = append(b, []byte{0x20}...)
530         b = strconv.AppendInt(b, int64(t.Day()), 10)
531         b = append(b, []byte{0x20}...)
532         b = append(b, ga.monthsWide[t.Month()]...)
533         b = append(b, []byte{0x20}...)
534
535         if t.Year() > 0 {
536                 b = strconv.AppendInt(b, int64(t.Year()), 10)
537         } else {
538                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
539         }
540
541         return string(b)
542 }
543
544 // FmtTimeShort returns the short time representation of 't' for 'ga_IE'
545 func (ga *ga_IE) FmtTimeShort(t time.Time) string {
546
547         b := make([]byte, 0, 32)
548
549         if t.Hour() < 10 {
550                 b = append(b, '0')
551         }
552
553         b = strconv.AppendInt(b, int64(t.Hour()), 10)
554         b = append(b, ga.timeSeparator...)
555
556         if t.Minute() < 10 {
557                 b = append(b, '0')
558         }
559
560         b = strconv.AppendInt(b, int64(t.Minute()), 10)
561
562         return string(b)
563 }
564
565 // FmtTimeMedium returns the medium time representation of 't' for 'ga_IE'
566 func (ga *ga_IE) FmtTimeMedium(t time.Time) string {
567
568         b := make([]byte, 0, 32)
569
570         if t.Hour() < 10 {
571                 b = append(b, '0')
572         }
573
574         b = strconv.AppendInt(b, int64(t.Hour()), 10)
575         b = append(b, ga.timeSeparator...)
576
577         if t.Minute() < 10 {
578                 b = append(b, '0')
579         }
580
581         b = strconv.AppendInt(b, int64(t.Minute()), 10)
582         b = append(b, ga.timeSeparator...)
583
584         if t.Second() < 10 {
585                 b = append(b, '0')
586         }
587
588         b = strconv.AppendInt(b, int64(t.Second()), 10)
589
590         return string(b)
591 }
592
593 // FmtTimeLong returns the long time representation of 't' for 'ga_IE'
594 func (ga *ga_IE) FmtTimeLong(t time.Time) string {
595
596         b := make([]byte, 0, 32)
597
598         if t.Hour() < 10 {
599                 b = append(b, '0')
600         }
601
602         b = strconv.AppendInt(b, int64(t.Hour()), 10)
603         b = append(b, ga.timeSeparator...)
604
605         if t.Minute() < 10 {
606                 b = append(b, '0')
607         }
608
609         b = strconv.AppendInt(b, int64(t.Minute()), 10)
610         b = append(b, ga.timeSeparator...)
611
612         if t.Second() < 10 {
613                 b = append(b, '0')
614         }
615
616         b = strconv.AppendInt(b, int64(t.Second()), 10)
617         b = append(b, []byte{0x20}...)
618
619         tz, _ := t.Zone()
620         b = append(b, tz...)
621
622         return string(b)
623 }
624
625 // FmtTimeFull returns the full time representation of 't' for 'ga_IE'
626 func (ga *ga_IE) FmtTimeFull(t time.Time) string {
627
628         b := make([]byte, 0, 32)
629
630         if t.Hour() < 10 {
631                 b = append(b, '0')
632         }
633
634         b = strconv.AppendInt(b, int64(t.Hour()), 10)
635         b = append(b, ga.timeSeparator...)
636
637         if t.Minute() < 10 {
638                 b = append(b, '0')
639         }
640
641         b = strconv.AppendInt(b, int64(t.Minute()), 10)
642         b = append(b, ga.timeSeparator...)
643
644         if t.Second() < 10 {
645                 b = append(b, '0')
646         }
647
648         b = strconv.AppendInt(b, int64(t.Second()), 10)
649         b = append(b, []byte{0x20}...)
650
651         tz, _ := t.Zone()
652
653         if btz, ok := ga.timezones[tz]; ok {
654                 b = append(b, btz...)
655         } else {
656                 b = append(b, tz...)
657         }
658
659         return string(b)
660 }