OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / az_Latn / az_Latn.go
1 package az_Latn
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 az_Latn 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         currencyPositivePrefix string
26         currencyNegativePrefix 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 'az_Latn' locale
45 func New() locales.Translator {
46         return &az_Latn{
47                 locale:                 "az_Latn",
48                 pluralsCardinal:        []locales.PluralRule{2, 6},
49                 pluralsOrdinal:         []locales.PluralRule{2, 4, 5, 6},
50                 pluralsRange:           []locales.PluralRule{2, 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                 currencyPositivePrefix: " ",
60                 currencyNegativePrefix: " ",
61                 monthsAbbreviated:      []string{"", "yan", "fev", "mar", "apr", "may", "iyn", "iyl", "avq", "sen", "okt", "noy", "dek"},
62                 monthsNarrow:           []string{"", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
63                 monthsWide:             []string{"", "yanvar", "fevral", "mart", "aprel", "may", "iyun", "iyul", "avqust", "sentyabr", "oktyabr", "noyabr", "dekabr"},
64                 daysAbbreviated:        []string{"B.", "B.E.", "Ç.A.", "Ç.", "C.A.", "C.", "Ş."},
65                 daysNarrow:             []string{"7", "1", "2", "3", "4", "5", "6"},
66                 daysShort:              []string{"B.", "B.E.", "Ç.A.", "Ç.", "C.A.", "C.", "Ş."},
67                 daysWide:               []string{"bazar", "bazar ertəsi", "çərşənbə axşamı", "çərşənbə", "cümə axşamı", "cümə", "şənbə"},
68                 periodsAbbreviated:     []string{"AM", "PM"},
69                 periodsNarrow:          []string{"a", "p"},
70                 periodsWide:            []string{"AM", "PM"},
71                 erasAbbreviated:        []string{"e.ə.", "y.e."},
72                 erasNarrow:             []string{"", ""},
73                 erasWide:               []string{"eramızdan əvvəl", "yeni era"},
74                 timezones:              map[string]string{"AEST": "Şərqi Avstraliya Standart Vaxtı", "EAT": "Şərqi Afrika Vaxtı", "HNNOMX": "Şimal-Qərbi Meksika Standart Vaxtı", "MEZ": "Mərkəzi Avropa Standart Vaxtı", "WITA": "Mərkəzi İndoneziya Vaxtı", "HAT": "Nyufaundlend Yay Vaxtı", "COT": "Kolumbiya Standart Vaxtı", "COST": "Kolumbiya Yay Vaxtı", "CAT": "Mərkəzi Afrika Vaxtı", "UYT": "Uruqvay Standart Vaxtı", "ACDT": "Mərkəzi Avstraliya Yay Vaxtı", "HNT": "Nyufaundlend Standart Vaxtı", "HKT": "Honq Konq Standart Vaxtı", "TMST": "Türkmənistan Yay Vaxtı", "CDT": "Şimali Mərkəzi Amerika Yay Vaxtı", "AWST": "Qərbi Avstraliya Standart Vaxtı", "NZDT": "Yeni Zelandiya Yay Vaxtı", "AEDT": "Şərqi Avstraliya Yay Vaxtı", "ECT": "Ekvador Vaxtı", "HEPM": "San Pier və Mikelon Yay Vaxtı", "UYST": "Uruqvay Yay Vaxtı", "HAST": "Havay-Aleut Standart Vaxtı", "CHADT": "Çatham Yay Vaxtı", "CST": "Şimali Mərkəzi Amerika Standart Vaxtı", "MDT": "MDT", "WART": "Qərbi Argentina Standart Vaxtı", "WARST": "Qərbi Argentina Yay Vaxtı", "AST": "Atlantik Standart Vaxt", "WESZ": "Qərbi Avropa Yay Vaxtı", "BOT": "Boliviya Vaxtı", "CHAST": "Çatham Standart Vaxtı", "MESZ": "Mərkəzi Avropa Yay Vaxtı", "VET": "Venesuela Vaxtı", "HENOMX": "Şimal-Qərbi Meksika Yay Vaxtı", "IST": "Hindistan Vaxtı", "HNOG": "Qərbi Qrenlandiya Standart Vaxtı", "WAT": "Qərbi Afrika Standart Vaxtı", "GMT": "Qrinviç Orta Vaxtı", "ACST": "Mərkəzi Avstraliya Standart Vaxtı", "HNPM": "San Pier və Mikelon Standart Vaxtı", "HADT": "Havay-Aleut Yay Vaxtı", "LHST": "Lord Hau Standart Vaxtı", "CLT": "Çili Standart Vaxtı", "EDT": "Şimali Şərqi Amerika Yay Vaxtı", "AKDT": "Alyaska Yay Vaxtı", "SGT": "Sinqapur Vaxtı", "HNPMX": "Meksika Sakit Okean Standart Vaxtı", "PDT": "Şimali Amerika Sakit Okean Yay Vaxtı", "HECU": "Kuba Yay Vaxtı", "∅∅∅": "Braziliya Yay Vaxtı", "ACWST": "Mərkəzi Qərbi Avstraliya Standart Vaxtı", "NZST": "Yeni Zelandiya Standart Vaxtı", "HKST": "Honq Konq Yay Vaxtı", "ChST": "Çamorro Vaxtı", "EST": "Şimali Şərqi Amerika Standart Vaxtı", "GFT": "Fransız Qvianası Vaxtı", "WIT": "Şərqi İndoneziya Vaxtı", "ARST": "Argentina Yay Vaxtı", "SAST": "Cənubi Afrika Vaxtı", "WAST": "Qərbi Afrika Yay Vaxtı", "HEPMX": "Meksika Sakit Okean Yay Vaxtı", "ART": "Argentina Standart Vaxtı", "GYT": "Qayana Vaxtı", "AKST": "Alyaska Standart Vaxtı", "JDT": "Yaponiya Yay Vaxtı", "PST": "Şimali Amerika Sakit Okean Standart Vaxtı", "AWDT": "Qərbi Avstraliya Yay Vaxtı", "MYT": "Malayziya Vaxtı", "TMT": "Türkmənistan Standart Vaxtı", "ADT": "Atlantik Yay Vaxtı", "HEEG": "Şərqi Qrenlandiya Yay Vaxtı", "CLST": "Çili Yay Vaxtı", "WIB": "Qərbi İndoneziya Vaxtı", "SRT": "Surinam Vaxtı", "ACWDT": "Mərkəzi Qərbi Avstraliya Yay Vaxtı", "JST": "Yaponiya Standart Vaxtı", "OEZ": "Şərqi Avropa Standart Vaxtı", "OESZ": "Şərqi Avropa Yay Vaxtı", "WEZ": "Qərbi Avropa Standart Vaxtı", "BT": "Butan Vaxtı", "MST": "MST", "LHDT": "Lord Hau Yay vaxtı", "HEOG": "Qərbi Qrenlandiya Yay Vaxtı", "HNEG": "Şərqi Qrenlandiya Standart Vaxtı", "HNCU": "Kuba Standart Vaxtı"},
75         }
76 }
77
78 // Locale returns the current translators string locale
79 func (az *az_Latn) Locale() string {
80         return az.locale
81 }
82
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'az_Latn'
84 func (az *az_Latn) PluralsCardinal() []locales.PluralRule {
85         return az.pluralsCardinal
86 }
87
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'az_Latn'
89 func (az *az_Latn) PluralsOrdinal() []locales.PluralRule {
90         return az.pluralsOrdinal
91 }
92
93 // PluralsRange returns the list of range plural rules associated with 'az_Latn'
94 func (az *az_Latn) PluralsRange() []locales.PluralRule {
95         return az.pluralsRange
96 }
97
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'az_Latn'
99 func (az *az_Latn) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100
101         n := math.Abs(num)
102
103         if n == 1 {
104                 return locales.PluralRuleOne
105         }
106
107         return locales.PluralRuleOther
108 }
109
110 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'az_Latn'
111 func (az *az_Latn) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
112
113         n := math.Abs(num)
114         i := int64(n)
115         iMod10 := i % 10
116         iMod100 := i % 100
117         iMod1000 := i % 1000
118
119         if (iMod10 == 1 || iMod10 == 2 || iMod10 == 5 || iMod10 == 7 || iMod10 == 8) || (iMod100 == 20 || iMod100 == 50 || iMod100 == 70 || iMod100 == 80) {
120                 return locales.PluralRuleOne
121         } else if (iMod10 == 3 || iMod10 == 4) || (iMod1000 == 100 || iMod1000 == 200 || iMod1000 == 300 || iMod1000 == 400 || iMod1000 == 500 || iMod1000 == 600 || iMod1000 == 700 || iMod1000 == 800 || iMod1000 == 900) {
122                 return locales.PluralRuleFew
123         } else if (i == 0) || (iMod10 == 6) || (iMod100 == 40 || iMod100 == 60 || iMod100 == 90) {
124                 return locales.PluralRuleMany
125         }
126
127         return locales.PluralRuleOther
128 }
129
130 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'az_Latn'
131 func (az *az_Latn) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
132
133         start := az.CardinalPluralRule(num1, v1)
134         end := az.CardinalPluralRule(num2, v2)
135
136         if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
137                 return locales.PluralRuleOther
138         } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
139                 return locales.PluralRuleOne
140         }
141
142         return locales.PluralRuleOther
143
144 }
145
146 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
147 func (az *az_Latn) MonthAbbreviated(month time.Month) string {
148         return az.monthsAbbreviated[month]
149 }
150
151 // MonthsAbbreviated returns the locales abbreviated months
152 func (az *az_Latn) MonthsAbbreviated() []string {
153         return az.monthsAbbreviated[1:]
154 }
155
156 // MonthNarrow returns the locales narrow month given the 'month' provided
157 func (az *az_Latn) MonthNarrow(month time.Month) string {
158         return az.monthsNarrow[month]
159 }
160
161 // MonthsNarrow returns the locales narrow months
162 func (az *az_Latn) MonthsNarrow() []string {
163         return az.monthsNarrow[1:]
164 }
165
166 // MonthWide returns the locales wide month given the 'month' provided
167 func (az *az_Latn) MonthWide(month time.Month) string {
168         return az.monthsWide[month]
169 }
170
171 // MonthsWide returns the locales wide months
172 func (az *az_Latn) MonthsWide() []string {
173         return az.monthsWide[1:]
174 }
175
176 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
177 func (az *az_Latn) WeekdayAbbreviated(weekday time.Weekday) string {
178         return az.daysAbbreviated[weekday]
179 }
180
181 // WeekdaysAbbreviated returns the locales abbreviated weekdays
182 func (az *az_Latn) WeekdaysAbbreviated() []string {
183         return az.daysAbbreviated
184 }
185
186 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
187 func (az *az_Latn) WeekdayNarrow(weekday time.Weekday) string {
188         return az.daysNarrow[weekday]
189 }
190
191 // WeekdaysNarrow returns the locales narrow weekdays
192 func (az *az_Latn) WeekdaysNarrow() []string {
193         return az.daysNarrow
194 }
195
196 // WeekdayShort returns the locales short weekday given the 'weekday' provided
197 func (az *az_Latn) WeekdayShort(weekday time.Weekday) string {
198         return az.daysShort[weekday]
199 }
200
201 // WeekdaysShort returns the locales short weekdays
202 func (az *az_Latn) WeekdaysShort() []string {
203         return az.daysShort
204 }
205
206 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
207 func (az *az_Latn) WeekdayWide(weekday time.Weekday) string {
208         return az.daysWide[weekday]
209 }
210
211 // WeekdaysWide returns the locales wide weekdays
212 func (az *az_Latn) WeekdaysWide() []string {
213         return az.daysWide
214 }
215
216 // Decimal returns the decimal point of number
217 func (az *az_Latn) Decimal() string {
218         return az.decimal
219 }
220
221 // Group returns the group of number
222 func (az *az_Latn) Group() string {
223         return az.group
224 }
225
226 // Group returns the minus sign of number
227 func (az *az_Latn) Minus() string {
228         return az.minus
229 }
230
231 // FmtNumber returns 'num' with digits/precision of 'v' for 'az_Latn' and handles both Whole and Real numbers based on 'v'
232 func (az *az_Latn) FmtNumber(num float64, v uint64) string {
233
234         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
235         l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
236         count := 0
237         inWhole := v == 0
238         b := make([]byte, 0, l)
239
240         for i := len(s) - 1; i >= 0; i-- {
241
242                 if s[i] == '.' {
243                         b = append(b, az.decimal[0])
244                         inWhole = true
245                         continue
246                 }
247
248                 if inWhole {
249                         if count == 3 {
250                                 b = append(b, az.group[0])
251                                 count = 1
252                         } else {
253                                 count++
254                         }
255                 }
256
257                 b = append(b, s[i])
258         }
259
260         if num < 0 {
261                 b = append(b, az.minus[0])
262         }
263
264         // reverse
265         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
266                 b[i], b[j] = b[j], b[i]
267         }
268
269         return string(b)
270 }
271
272 // FmtPercent returns 'num' with digits/precision of 'v' for 'az_Latn' and handles both Whole and Real numbers based on 'v'
273 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
274 func (az *az_Latn) FmtPercent(num float64, v uint64) string {
275         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
276         l := len(s) + 3
277         b := make([]byte, 0, l)
278
279         for i := len(s) - 1; i >= 0; i-- {
280
281                 if s[i] == '.' {
282                         b = append(b, az.decimal[0])
283                         continue
284                 }
285
286                 b = append(b, s[i])
287         }
288
289         if num < 0 {
290                 b = append(b, az.minus[0])
291         }
292
293         // reverse
294         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
295                 b[i], b[j] = b[j], b[i]
296         }
297
298         b = append(b, az.percent...)
299
300         return string(b)
301 }
302
303 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'az_Latn'
304 func (az *az_Latn) FmtCurrency(num float64, v uint64, currency currency.Type) string {
305
306         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
307         symbol := az.currencies[currency]
308         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
309         count := 0
310         inWhole := v == 0
311         b := make([]byte, 0, l)
312
313         for i := len(s) - 1; i >= 0; i-- {
314
315                 if s[i] == '.' {
316                         b = append(b, az.decimal[0])
317                         inWhole = true
318                         continue
319                 }
320
321                 if inWhole {
322                         if count == 3 {
323                                 b = append(b, az.group[0])
324                                 count = 1
325                         } else {
326                                 count++
327                         }
328                 }
329
330                 b = append(b, s[i])
331         }
332
333         for j := len(symbol) - 1; j >= 0; j-- {
334                 b = append(b, symbol[j])
335         }
336
337         for j := len(az.currencyPositivePrefix) - 1; j >= 0; j-- {
338                 b = append(b, az.currencyPositivePrefix[j])
339         }
340
341         if num < 0 {
342                 b = append(b, az.minus[0])
343         }
344
345         // reverse
346         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
347                 b[i], b[j] = b[j], b[i]
348         }
349
350         if int(v) < 2 {
351
352                 if v == 0 {
353                         b = append(b, az.decimal...)
354                 }
355
356                 for i := 0; i < 2-int(v); i++ {
357                         b = append(b, '0')
358                 }
359         }
360
361         return string(b)
362 }
363
364 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'az_Latn'
365 // in accounting notation.
366 func (az *az_Latn) FmtAccounting(num float64, v uint64, currency currency.Type) string {
367
368         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
369         symbol := az.currencies[currency]
370         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
371         count := 0
372         inWhole := v == 0
373         b := make([]byte, 0, l)
374
375         for i := len(s) - 1; i >= 0; i-- {
376
377                 if s[i] == '.' {
378                         b = append(b, az.decimal[0])
379                         inWhole = true
380                         continue
381                 }
382
383                 if inWhole {
384                         if count == 3 {
385                                 b = append(b, az.group[0])
386                                 count = 1
387                         } else {
388                                 count++
389                         }
390                 }
391
392                 b = append(b, s[i])
393         }
394
395         if num < 0 {
396
397                 for j := len(symbol) - 1; j >= 0; j-- {
398                         b = append(b, symbol[j])
399                 }
400
401                 for j := len(az.currencyNegativePrefix) - 1; j >= 0; j-- {
402                         b = append(b, az.currencyNegativePrefix[j])
403                 }
404
405                 b = append(b, az.minus[0])
406
407         } else {
408
409                 for j := len(symbol) - 1; j >= 0; j-- {
410                         b = append(b, symbol[j])
411                 }
412
413                 for j := len(az.currencyPositivePrefix) - 1; j >= 0; j-- {
414                         b = append(b, az.currencyPositivePrefix[j])
415                 }
416
417         }
418
419         // reverse
420         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
421                 b[i], b[j] = b[j], b[i]
422         }
423
424         if int(v) < 2 {
425
426                 if v == 0 {
427                         b = append(b, az.decimal...)
428                 }
429
430                 for i := 0; i < 2-int(v); i++ {
431                         b = append(b, '0')
432                 }
433         }
434
435         return string(b)
436 }
437
438 // FmtDateShort returns the short date representation of 't' for 'az_Latn'
439 func (az *az_Latn) FmtDateShort(t time.Time) string {
440
441         b := make([]byte, 0, 32)
442
443         if t.Day() < 10 {
444                 b = append(b, '0')
445         }
446
447         b = strconv.AppendInt(b, int64(t.Day()), 10)
448         b = append(b, []byte{0x2e}...)
449
450         if t.Month() < 10 {
451                 b = append(b, '0')
452         }
453
454         b = strconv.AppendInt(b, int64(t.Month()), 10)
455
456         b = append(b, []byte{0x2e}...)
457
458         if t.Year() > 9 {
459                 b = append(b, strconv.Itoa(t.Year())[2:]...)
460         } else {
461                 b = append(b, strconv.Itoa(t.Year())[1:]...)
462         }
463
464         return string(b)
465 }
466
467 // FmtDateMedium returns the medium date representation of 't' for 'az_Latn'
468 func (az *az_Latn) FmtDateMedium(t time.Time) string {
469
470         b := make([]byte, 0, 32)
471
472         b = strconv.AppendInt(b, int64(t.Day()), 10)
473         b = append(b, []byte{0x20}...)
474         b = append(b, az.monthsAbbreviated[t.Month()]...)
475         b = append(b, []byte{0x20}...)
476
477         if t.Year() > 0 {
478                 b = strconv.AppendInt(b, int64(t.Year()), 10)
479         } else {
480                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
481         }
482
483         return string(b)
484 }
485
486 // FmtDateLong returns the long date representation of 't' for 'az_Latn'
487 func (az *az_Latn) FmtDateLong(t time.Time) string {
488
489         b := make([]byte, 0, 32)
490
491         b = strconv.AppendInt(b, int64(t.Day()), 10)
492         b = append(b, []byte{0x20}...)
493         b = append(b, az.monthsWide[t.Month()]...)
494         b = append(b, []byte{0x20}...)
495
496         if t.Year() > 0 {
497                 b = strconv.AppendInt(b, int64(t.Year()), 10)
498         } else {
499                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
500         }
501
502         return string(b)
503 }
504
505 // FmtDateFull returns the full date representation of 't' for 'az_Latn'
506 func (az *az_Latn) FmtDateFull(t time.Time) string {
507
508         b := make([]byte, 0, 32)
509
510         b = strconv.AppendInt(b, int64(t.Day()), 10)
511         b = append(b, []byte{0x20}...)
512         b = append(b, az.monthsWide[t.Month()]...)
513         b = append(b, []byte{0x20}...)
514
515         if t.Year() > 0 {
516                 b = strconv.AppendInt(b, int64(t.Year()), 10)
517         } else {
518                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
519         }
520
521         b = append(b, []byte{0x2c, 0x20}...)
522         b = append(b, az.daysWide[t.Weekday()]...)
523
524         return string(b)
525 }
526
527 // FmtTimeShort returns the short time representation of 't' for 'az_Latn'
528 func (az *az_Latn) FmtTimeShort(t time.Time) string {
529
530         b := make([]byte, 0, 32)
531
532         if t.Hour() < 10 {
533                 b = append(b, '0')
534         }
535
536         b = strconv.AppendInt(b, int64(t.Hour()), 10)
537         b = append(b, az.timeSeparator...)
538
539         if t.Minute() < 10 {
540                 b = append(b, '0')
541         }
542
543         b = strconv.AppendInt(b, int64(t.Minute()), 10)
544
545         return string(b)
546 }
547
548 // FmtTimeMedium returns the medium time representation of 't' for 'az_Latn'
549 func (az *az_Latn) FmtTimeMedium(t time.Time) string {
550
551         b := make([]byte, 0, 32)
552
553         if t.Hour() < 10 {
554                 b = append(b, '0')
555         }
556
557         b = strconv.AppendInt(b, int64(t.Hour()), 10)
558         b = append(b, az.timeSeparator...)
559
560         if t.Minute() < 10 {
561                 b = append(b, '0')
562         }
563
564         b = strconv.AppendInt(b, int64(t.Minute()), 10)
565         b = append(b, az.timeSeparator...)
566
567         if t.Second() < 10 {
568                 b = append(b, '0')
569         }
570
571         b = strconv.AppendInt(b, int64(t.Second()), 10)
572
573         return string(b)
574 }
575
576 // FmtTimeLong returns the long time representation of 't' for 'az_Latn'
577 func (az *az_Latn) FmtTimeLong(t time.Time) string {
578
579         b := make([]byte, 0, 32)
580
581         if t.Hour() < 10 {
582                 b = append(b, '0')
583         }
584
585         b = strconv.AppendInt(b, int64(t.Hour()), 10)
586         b = append(b, az.timeSeparator...)
587
588         if t.Minute() < 10 {
589                 b = append(b, '0')
590         }
591
592         b = strconv.AppendInt(b, int64(t.Minute()), 10)
593         b = append(b, az.timeSeparator...)
594
595         if t.Second() < 10 {
596                 b = append(b, '0')
597         }
598
599         b = strconv.AppendInt(b, int64(t.Second()), 10)
600         b = append(b, []byte{0x20}...)
601
602         tz, _ := t.Zone()
603         b = append(b, tz...)
604
605         return string(b)
606 }
607
608 // FmtTimeFull returns the full time representation of 't' for 'az_Latn'
609 func (az *az_Latn) FmtTimeFull(t time.Time) string {
610
611         b := make([]byte, 0, 32)
612
613         if t.Hour() < 10 {
614                 b = append(b, '0')
615         }
616
617         b = strconv.AppendInt(b, int64(t.Hour()), 10)
618         b = append(b, az.timeSeparator...)
619
620         if t.Minute() < 10 {
621                 b = append(b, '0')
622         }
623
624         b = strconv.AppendInt(b, int64(t.Minute()), 10)
625         b = append(b, az.timeSeparator...)
626
627         if t.Second() < 10 {
628                 b = append(b, '0')
629         }
630
631         b = strconv.AppendInt(b, int64(t.Second()), 10)
632         b = append(b, []byte{0x20}...)
633
634         tz, _ := t.Zone()
635
636         if btz, ok := az.timezones[tz]; ok {
637                 b = append(b, btz...)
638         } else {
639                 b = append(b, tz...)
640         }
641
642         return string(b)
643 }