OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / lo_LA / lo_LA.go
1 package lo_LA
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 lo_LA 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         monthsAbbreviated      []string
27         monthsNarrow           []string
28         monthsWide             []string
29         daysAbbreviated        []string
30         daysNarrow             []string
31         daysShort              []string
32         daysWide               []string
33         periodsAbbreviated     []string
34         periodsNarrow          []string
35         periodsShort           []string
36         periodsWide            []string
37         erasAbbreviated        []string
38         erasNarrow             []string
39         erasWide               []string
40         timezones              map[string]string
41 }
42
43 // New returns a new instance of translator for the 'lo_LA' locale
44 func New() locales.Translator {
45         return &lo_LA{
46                 locale:                 "lo_LA",
47                 pluralsCardinal:        []locales.PluralRule{6},
48                 pluralsOrdinal:         []locales.PluralRule{2, 6},
49                 pluralsRange:           []locales.PluralRule{6},
50                 decimal:                ",",
51                 group:                  ".",
52                 minus:                  "-",
53                 percent:                "%",
54                 perMille:               "‰",
55                 timeSeparator:          ":",
56                 inifinity:              "∞",
57                 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"},
58                 currencyNegativePrefix: "-",
59                 monthsAbbreviated:      []string{"", "ມ.ກ.", "ກ.ພ.", "ມ.ນ.", "ມ.ສ.", "ພ.ພ.", "ມິ.ຖ.", "ກ.ລ.", "ສ.ຫ.", "ກ.ຍ.", "ຕ.ລ.", "ພ.ຈ.", "ທ.ວ."},
60                 monthsNarrow:           []string{"", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
61                 monthsWide:             []string{"", "ມັງກອນ", "ກຸມພາ", "ມີນາ", "ເມສາ", "ພຶດສະພາ", "ມິຖຸນາ", "ກໍລະກົດ", "ສິງຫາ", "ກັນຍາ", "ຕຸລາ", "ພະຈິກ", "ທັນວາ"},
62                 daysAbbreviated:        []string{"ອາທິດ", "ຈັນ", "ອັງຄານ", "ພຸດ", "ພະຫັດ", "ສຸກ", "ເສົາ"},
63                 daysNarrow:             []string{"ອາ", "ຈ", "ອ", "ພ", "ພຫ", "ສຸ", "ສ"},
64                 daysShort:              []string{"ອາ.", "ຈ.", "ອ.", "ພ.", "ພຫ.", "ສຸ.", "ສ."},
65                 daysWide:               []string{"ວັນອາທິດ", "ວັນຈັນ", "ວັນອັງຄານ", "ວັນພຸດ", "ວັນພະຫັດ", "ວັນສຸກ", "ວັນເສົາ"},
66                 periodsAbbreviated:     []string{"ກ່ອນທ່ຽງ", "ຫຼັງທ່ຽງ"},
67                 periodsNarrow:          []string{"ກທ", "ຫຼທ"},
68                 periodsWide:            []string{"ກ່ອນທ່ຽງ", "ຫຼັງທ່ຽງ"},
69                 erasAbbreviated:        []string{"ກ່ອນ ຄ.ສ.", "ຄ.ສ."},
70                 erasNarrow:             []string{"", ""},
71                 erasWide:               []string{"ກ່ອນຄຣິດສັກກະລາດ", "ຄຣິດສັກກະລາດ"},
72                 timezones:              map[string]string{"ACST": "ເວ\u200bລາມາດ\u200bຕະ\u200bຖານອອ\u200bສ\u200bເຕຣ\u200bເລຍ\u200bກ\u200bາງ", "HNOG": "ເວລາມາດຕະຖານກຣີນແລນຕາເວັນຕົກ", "HADT": "ເວລາຕອນທ່ຽງຮາວາຍ-ເອລູທຽນ", "NZDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bນິວ\u200bຊີ\u200bແລນ", "JST": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bຍີ່\u200bປຸ່ນ", "CAT": "ເວ\u200bລາ\u200bອາ\u200bຟຣິ\u200bກາ\u200bກາງ", "CST": "ເວລາມາດຕະຖານກາງ", "SRT": "ເວ\u200bລາ\u200bຊຸ\u200bຣິ\u200bນາມ", "UYST": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນ\u200bອູ\u200bຣູ\u200bກວຍ", "LHST": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bລອດ\u200bເຮົາ", "VET": "ເວ\u200bລາ\u200bເວ\u200bເນ\u200bຊູ\u200bເອ\u200bລາ", "HENOMX": "ເວລາກາງເວັນເມັກຊິກັນນອດເວສ", "HNT": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bນິວ\u200bຟາວ\u200bແລນ", "HEPMX": "ເວລາກາງເວັນແປຊິຟິກເມັກຊິກັນ", "HECU": "ເວລາກາງເວັນຄິວບາ", "CLST": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນຊິ\u200bລີ", "AEST": "ເວ\u200bລາ\u200bມາດຕະຖານ\u200b\u200b\u200bອອສ\u200bເຕຣ\u200bລຽນ\u200bຕາ\u200bເວັນ\u200bອອກ", "OEZ": "ເວ\u200bລາ\u200bມາ\u200bດ\u200bຕະ\u200bຖານ\u200bຢູ\u200bໂຣບ\u200bຕາ\u200bເວັນ\u200bອອກ", "LHDT": "\u200bເວ\u200bລ\u200bສາ\u200bຕອນ\u200b\u200bທ່ຽງ\u200bລອດ\u200bເຮົາ\u200b", "ART": "\u200bເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານອາ\u200bເຈນ\u200bທິ\u200bນາ", "BOT": "ເວ\u200bລາ\u200bໂບ\u200bລິ\u200bເວຍ", "HNNOMX": "\u200bເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານນອດ\u200bເວ\u200bສ\u200bເມັກ\u200bຊິ\u200bໂກ", "WIB": "ເວ\u200bລາ\u200bອິນ\u200bໂດ\u200bເນ\u200bເຊຍ\u200bຕາ\u200bເວັນ\u200bຕົກ", "MYT": "ເວ\u200bລາ\u200bມາ\u200bເລ\u200bເຊຍ", "ARST": "\u200bເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນ\u200bອາ\u200bເຈນ\u200bທິ\u200bນາ", "HKST": "\u200bເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນ\u200bຮອງ\u200bກົງ", "ECT": "ເວ\u200bລາ\u200bເອ\u200bກົວ\u200bດໍ", "∅∅∅": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນອາ\u200bເມ\u200bຊອນ", "WART": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານເວ\u200bສ\u200bເທິນອາ\u200bເຈນ\u200bທິ\u200bນາ", "AKDT": "ເວລາກາງເວັນອະແລສກາ", "CHAST": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bຊາ\u200bທາມ", "WIT": "ເວ\u200bລາ\u200bອິນ\u200bໂດ\u200bເນ\u200bເຊຍ\u200bຕາ\u200bເວັນ\u200bອອກ", "TMST": "ເວລາລະດູຮ້ອນຕວກເມນິສຖານ", "ADT": "ເວລາກາງເວັນຂອງອາແລນຕິກ", "EAT": "ເວ\u200bລາ\u200bອາ\u200bຟຣິ\u200bກາ\u200bຕາ\u200bເວັນ\u200bອອກ", "HNEG": "ເວລາມາດຕະຖານຕາເວັນອອກກຣີນແລນ", "CLT": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານຊິ\u200bລີ", "EST": "ເວລາມາດຕະຖານຕາເວັນອອກ", "ACWST": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານອອສ\u200bເຕຣ\u200bລຽນ\u200bກາງ\u200bຕາ\u200bເວັນ\u200bຕົກ", "GFT": "ເວ\u200bລາ\u200bເຟ\u200bຣນ\u200bຊ໌\u200bເກຍ\u200bນາ", "AWST": "ເວ\u200bລາ\u200bມາ\u200bດ\u200bຕະ\u200bຖານອອສ\u200bເຕຣ\u200bລຽນ\u200bຕາ\u200bເວັນ\u200bຕົກ", "EDT": "ເວລາກາງເວັນຕາເວັນອອກ", "WESZ": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນຢູ\u200bໂຣບ\u200bຕາ\u200bເວັນ\u200bຕົກ", "UYT": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bອູ\u200bຣູ\u200bກວຍ", "WARST": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນເວ\u200bສ\u200bເທິນອາ\u200bເຈນ\u200bທິ\u200bນາ", "SAST": "ເວ\u200bລາ\u200bອາ\u200bຟຣິ\u200bກາ\u200bໃຕ້", "COT": "ເວລາມາດຕະຖານໂຄລຳເບຍ", "COST": "ເວລາລະດູຮ້ອນໂຄລໍາເບຍ", "ACDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bອອສ\u200bເຕຣ\u200bເລຍ\u200bກາງ", "BT": "ເວ\u200bລາ\u200bພູ\u200bຖານ", "PST": "ເວລາມາດຕະຖານແປຊິຟິກ", "PDT": "ເວລາກາງເວັນແປຊິຟິກ", "CHADT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bຊາ\u200bທາມ", "HNCU": "ເວລາມາດຕະຖານຂອງຄິວບາ", "MST": "ເວລາມາດຕະຖານມາເກົາ", "AST": "ເວລາມາດຕະຖານຂອງອາແລນຕິກ", "GYT": "ເວລາກາຍອານາ", "SGT": "ເວ\u200bລາ\u200bສິງ\u200bກະ\u200bໂປ", "AEDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bອອສ\u200bເຕຣ\u200bລຽນ\u200bຕາ\u200bເວັນ\u200bອອກ", "WAST": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນ\u200bອາ\u200bຟຣິ\u200bກາ\u200bຕາ\u200bເວັນ\u200bຕົກ", "AWDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bອອສ\u200bເຕຣ\u200bລຽນ\u200bຕາ\u200bເວັນ\u200bຕົກ", "NZST": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານນິວ\u200bຊີ\u200bແລນ", "TMT": "ເວລາມາດຕະຖານຕວກເມນິສຖານ", "HEPM": "\u200bເວ\u200bລາຕອນ\u200bທ່ຽງເຊນ\u200bປີ\u200bແອ ແລະ\u200bມິ\u200bກົວ\u200bລອນ", "MDT": "ເວລາລະດູຮ້ອນມາເກົາ", "WITA": "ເວ\u200bລາ\u200bອິນ\u200bໂດ\u200bເນ\u200bເຊຍ\u200bກາງ", "AKST": "ເວລາມາດຕະຖານອະແລສກາ", "MEZ": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bຢູ\u200bໂຣບກາງ", "CDT": "ເວລາກາງເວັນກາງ", "MESZ": "\u200bເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນ\u200bຢູ\u200bໂຣບ\u200bກາງ", "HAST": "ເວລາມາດຕະຖານຮາວາຍ-ເອລູທຽນ", "WAT": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bອາ\u200bຟຣິ\u200bກາ\u200bຕາ\u200bເວັນ\u200bຕົກ", "HKT": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານ\u200bຮອງ\u200bກົງ", "WEZ": "ເວ\u200bລາ\u200bມາດ\u200bຕະ\u200bຖານຢູ\u200bໂຣບ\u200bຕາ\u200bເວັນ\u200bຕົກ", "HNPM": "\u200bເວ\u200bລາມາດ\u200bຕະ\u200bຖານເຊນ\u200bປີ\u200bແອ ແລະ\u200bມິ\u200bກົວ\u200bລອນ", "ACWDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bອອສ\u200bເຕຣ\u200bລຽນ\u200bກາງ\u200bຕາ\u200bເວັນ\u200bຕົກ", "JDT": "ເວ\u200bລາ\u200bຕອນ\u200bທ່ຽງ\u200bຍີ່\u200bປຸ່ນ", "OESZ": "ເວ\u200bລາ\u200bລະ\u200bດູ\u200bຮ້ອນຢູ\u200bໂຣບ\u200bຕາ\u200bເວັນ\u200bອອກ", "HEOG": "ເວລາຕອນທ່ຽງກຣີນແລນຕາເວັນຕົກ", "GMT": "ເວ\u200bລາກຣີນ\u200bວິ\u200bຊ", "ChST": "ເວ\u200bລາ\u200bຈາ\u200bໂມ\u200bໂຣ", "HEEG": "ເວລາລະດູຮ້ອນກຣີນແລນຕາເວັນອອກ", "HAT": "ເວລາກາງເວັນນິວຟາວແລນ", "HNPMX": "ເວລາມາດຕະຖານແປຊິຟິກເມັກຊິກັນ", "IST": "ເວລາ ອິນເດຍ"},
73         }
74 }
75
76 // Locale returns the current translators string locale
77 func (lo *lo_LA) Locale() string {
78         return lo.locale
79 }
80
81 // PluralsCardinal returns the list of cardinal plural rules associated with 'lo_LA'
82 func (lo *lo_LA) PluralsCardinal() []locales.PluralRule {
83         return lo.pluralsCardinal
84 }
85
86 // PluralsOrdinal returns the list of ordinal plural rules associated with 'lo_LA'
87 func (lo *lo_LA) PluralsOrdinal() []locales.PluralRule {
88         return lo.pluralsOrdinal
89 }
90
91 // PluralsRange returns the list of range plural rules associated with 'lo_LA'
92 func (lo *lo_LA) PluralsRange() []locales.PluralRule {
93         return lo.pluralsRange
94 }
95
96 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'lo_LA'
97 func (lo *lo_LA) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
98         return locales.PluralRuleOther
99 }
100
101 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'lo_LA'
102 func (lo *lo_LA) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
103
104         n := math.Abs(num)
105
106         if n == 1 {
107                 return locales.PluralRuleOne
108         }
109
110         return locales.PluralRuleOther
111 }
112
113 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'lo_LA'
114 func (lo *lo_LA) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
115         return locales.PluralRuleOther
116 }
117
118 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
119 func (lo *lo_LA) MonthAbbreviated(month time.Month) string {
120         return lo.monthsAbbreviated[month]
121 }
122
123 // MonthsAbbreviated returns the locales abbreviated months
124 func (lo *lo_LA) MonthsAbbreviated() []string {
125         return lo.monthsAbbreviated[1:]
126 }
127
128 // MonthNarrow returns the locales narrow month given the 'month' provided
129 func (lo *lo_LA) MonthNarrow(month time.Month) string {
130         return lo.monthsNarrow[month]
131 }
132
133 // MonthsNarrow returns the locales narrow months
134 func (lo *lo_LA) MonthsNarrow() []string {
135         return lo.monthsNarrow[1:]
136 }
137
138 // MonthWide returns the locales wide month given the 'month' provided
139 func (lo *lo_LA) MonthWide(month time.Month) string {
140         return lo.monthsWide[month]
141 }
142
143 // MonthsWide returns the locales wide months
144 func (lo *lo_LA) MonthsWide() []string {
145         return lo.monthsWide[1:]
146 }
147
148 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
149 func (lo *lo_LA) WeekdayAbbreviated(weekday time.Weekday) string {
150         return lo.daysAbbreviated[weekday]
151 }
152
153 // WeekdaysAbbreviated returns the locales abbreviated weekdays
154 func (lo *lo_LA) WeekdaysAbbreviated() []string {
155         return lo.daysAbbreviated
156 }
157
158 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
159 func (lo *lo_LA) WeekdayNarrow(weekday time.Weekday) string {
160         return lo.daysNarrow[weekday]
161 }
162
163 // WeekdaysNarrow returns the locales narrow weekdays
164 func (lo *lo_LA) WeekdaysNarrow() []string {
165         return lo.daysNarrow
166 }
167
168 // WeekdayShort returns the locales short weekday given the 'weekday' provided
169 func (lo *lo_LA) WeekdayShort(weekday time.Weekday) string {
170         return lo.daysShort[weekday]
171 }
172
173 // WeekdaysShort returns the locales short weekdays
174 func (lo *lo_LA) WeekdaysShort() []string {
175         return lo.daysShort
176 }
177
178 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
179 func (lo *lo_LA) WeekdayWide(weekday time.Weekday) string {
180         return lo.daysWide[weekday]
181 }
182
183 // WeekdaysWide returns the locales wide weekdays
184 func (lo *lo_LA) WeekdaysWide() []string {
185         return lo.daysWide
186 }
187
188 // Decimal returns the decimal point of number
189 func (lo *lo_LA) Decimal() string {
190         return lo.decimal
191 }
192
193 // Group returns the group of number
194 func (lo *lo_LA) Group() string {
195         return lo.group
196 }
197
198 // Group returns the minus sign of number
199 func (lo *lo_LA) Minus() string {
200         return lo.minus
201 }
202
203 // FmtNumber returns 'num' with digits/precision of 'v' for 'lo_LA' and handles both Whole and Real numbers based on 'v'
204 func (lo *lo_LA) FmtNumber(num float64, v uint64) string {
205
206         return strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
207 }
208
209 // FmtPercent returns 'num' with digits/precision of 'v' for 'lo_LA' and handles both Whole and Real numbers based on 'v'
210 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
211 func (lo *lo_LA) FmtPercent(num float64, v uint64) string {
212         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
213         l := len(s) + 3
214         b := make([]byte, 0, l)
215
216         for i := len(s) - 1; i >= 0; i-- {
217
218                 if s[i] == '.' {
219                         b = append(b, lo.decimal[0])
220                         continue
221                 }
222
223                 b = append(b, s[i])
224         }
225
226         if num < 0 {
227                 b = append(b, lo.minus[0])
228         }
229
230         // reverse
231         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
232                 b[i], b[j] = b[j], b[i]
233         }
234
235         b = append(b, lo.percent...)
236
237         return string(b)
238 }
239
240 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'lo_LA'
241 func (lo *lo_LA) FmtCurrency(num float64, v uint64, currency currency.Type) string {
242
243         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
244         symbol := lo.currencies[currency]
245         l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
246         count := 0
247         inWhole := v == 0
248         b := make([]byte, 0, l)
249
250         for i := len(s) - 1; i >= 0; i-- {
251
252                 if s[i] == '.' {
253                         b = append(b, lo.decimal[0])
254                         inWhole = true
255                         continue
256                 }
257
258                 if inWhole {
259                         if count == 3 {
260                                 b = append(b, lo.group[0])
261                                 count = 1
262                         } else {
263                                 count++
264                         }
265                 }
266
267                 b = append(b, s[i])
268         }
269
270         for j := len(symbol) - 1; j >= 0; j-- {
271                 b = append(b, symbol[j])
272         }
273
274         if num < 0 {
275                 b = append(b, lo.minus[0])
276         }
277
278         // reverse
279         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
280                 b[i], b[j] = b[j], b[i]
281         }
282
283         if int(v) < 2 {
284
285                 if v == 0 {
286                         b = append(b, lo.decimal...)
287                 }
288
289                 for i := 0; i < 2-int(v); i++ {
290                         b = append(b, '0')
291                 }
292         }
293
294         return string(b)
295 }
296
297 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'lo_LA'
298 // in accounting notation.
299 func (lo *lo_LA) FmtAccounting(num float64, v uint64, currency currency.Type) string {
300
301         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
302         symbol := lo.currencies[currency]
303         l := len(s) + len(symbol) + 3 + 1*len(s[:len(s)-int(v)-1])/3
304         count := 0
305         inWhole := v == 0
306         b := make([]byte, 0, l)
307
308         for i := len(s) - 1; i >= 0; i-- {
309
310                 if s[i] == '.' {
311                         b = append(b, lo.decimal[0])
312                         inWhole = true
313                         continue
314                 }
315
316                 if inWhole {
317                         if count == 3 {
318                                 b = append(b, lo.group[0])
319                                 count = 1
320                         } else {
321                                 count++
322                         }
323                 }
324
325                 b = append(b, s[i])
326         }
327
328         if num < 0 {
329
330                 for j := len(symbol) - 1; j >= 0; j-- {
331                         b = append(b, symbol[j])
332                 }
333
334                 b = append(b, lo.currencyNegativePrefix[0])
335
336         } else {
337
338                 for j := len(symbol) - 1; j >= 0; j-- {
339                         b = append(b, symbol[j])
340                 }
341
342         }
343
344         // reverse
345         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
346                 b[i], b[j] = b[j], b[i]
347         }
348
349         if int(v) < 2 {
350
351                 if v == 0 {
352                         b = append(b, lo.decimal...)
353                 }
354
355                 for i := 0; i < 2-int(v); i++ {
356                         b = append(b, '0')
357                 }
358         }
359
360         return string(b)
361 }
362
363 // FmtDateShort returns the short date representation of 't' for 'lo_LA'
364 func (lo *lo_LA) FmtDateShort(t time.Time) string {
365
366         b := make([]byte, 0, 32)
367
368         b = strconv.AppendInt(b, int64(t.Day()), 10)
369         b = append(b, []byte{0x2f}...)
370         b = strconv.AppendInt(b, int64(t.Month()), 10)
371         b = append(b, []byte{0x2f}...)
372
373         if t.Year() > 0 {
374                 b = strconv.AppendInt(b, int64(t.Year()), 10)
375         } else {
376                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
377         }
378
379         return string(b)
380 }
381
382 // FmtDateMedium returns the medium date representation of 't' for 'lo_LA'
383 func (lo *lo_LA) FmtDateMedium(t time.Time) string {
384
385         b := make([]byte, 0, 32)
386
387         b = strconv.AppendInt(b, int64(t.Day()), 10)
388         b = append(b, []byte{0x20}...)
389         b = append(b, lo.monthsAbbreviated[t.Month()]...)
390         b = append(b, []byte{0x20}...)
391
392         if t.Year() > 0 {
393                 b = strconv.AppendInt(b, int64(t.Year()), 10)
394         } else {
395                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
396         }
397
398         return string(b)
399 }
400
401 // FmtDateLong returns the long date representation of 't' for 'lo_LA'
402 func (lo *lo_LA) FmtDateLong(t time.Time) string {
403
404         b := make([]byte, 0, 32)
405
406         b = strconv.AppendInt(b, int64(t.Day()), 10)
407         b = append(b, []byte{0x20}...)
408         b = append(b, lo.monthsWide[t.Month()]...)
409         b = append(b, []byte{0x20}...)
410
411         if t.Year() > 0 {
412                 b = strconv.AppendInt(b, int64(t.Year()), 10)
413         } else {
414                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
415         }
416
417         return string(b)
418 }
419
420 // FmtDateFull returns the full date representation of 't' for 'lo_LA'
421 func (lo *lo_LA) FmtDateFull(t time.Time) string {
422
423         b := make([]byte, 0, 32)
424
425         b = append(b, lo.daysWide[t.Weekday()]...)
426         b = append(b, []byte{0x20, 0xe0, 0xba, 0x97, 0xe0, 0xba, 0xb5, 0x20}...)
427         b = strconv.AppendInt(b, int64(t.Day()), 10)
428         b = append(b, []byte{0x20}...)
429         b = append(b, lo.monthsWide[t.Month()]...)
430         b = append(b, []byte{0x20}...)
431
432         if t.Year() < 0 {
433                 b = append(b, lo.erasWide[0]...)
434         } else {
435                 b = append(b, lo.erasWide[1]...)
436         }
437
438         b = append(b, []byte{0x20}...)
439
440         if t.Year() > 0 {
441                 b = strconv.AppendInt(b, int64(t.Year()), 10)
442         } else {
443                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
444         }
445
446         return string(b)
447 }
448
449 // FmtTimeShort returns the short time representation of 't' for 'lo_LA'
450 func (lo *lo_LA) FmtTimeShort(t time.Time) string {
451
452         b := make([]byte, 0, 32)
453
454         b = strconv.AppendInt(b, int64(t.Hour()), 10)
455         b = append(b, lo.timeSeparator...)
456
457         if t.Minute() < 10 {
458                 b = append(b, '0')
459         }
460
461         b = strconv.AppendInt(b, int64(t.Minute()), 10)
462
463         return string(b)
464 }
465
466 // FmtTimeMedium returns the medium time representation of 't' for 'lo_LA'
467 func (lo *lo_LA) FmtTimeMedium(t time.Time) string {
468
469         b := make([]byte, 0, 32)
470
471         b = strconv.AppendInt(b, int64(t.Hour()), 10)
472         b = append(b, lo.timeSeparator...)
473
474         if t.Minute() < 10 {
475                 b = append(b, '0')
476         }
477
478         b = strconv.AppendInt(b, int64(t.Minute()), 10)
479         b = append(b, lo.timeSeparator...)
480
481         if t.Second() < 10 {
482                 b = append(b, '0')
483         }
484
485         b = strconv.AppendInt(b, int64(t.Second()), 10)
486
487         return string(b)
488 }
489
490 // FmtTimeLong returns the long time representation of 't' for 'lo_LA'
491 func (lo *lo_LA) FmtTimeLong(t time.Time) string {
492
493         b := make([]byte, 0, 32)
494
495         b = strconv.AppendInt(b, int64(t.Hour()), 10)
496         b = append(b, []byte{0x20, 0xe0, 0xbb, 0x82, 0xe0, 0xba, 0xa1, 0xe0, 0xba, 0x87, 0x20}...)
497         b = strconv.AppendInt(b, int64(t.Minute()), 10)
498         b = append(b, []byte{0x20, 0xe0, 0xba, 0x99, 0xe0, 0xba, 0xb2, 0xe0, 0xba, 0x97, 0xe0, 0xba, 0xb5, 0x20}...)
499
500         if t.Second() < 10 {
501                 b = append(b, '0')
502         }
503
504         b = strconv.AppendInt(b, int64(t.Second()), 10)
505         b = append(b, []byte{0x20, 0xe0, 0xba, 0xa7, 0xe0, 0xba, 0xb4, 0xe0, 0xba, 0x99, 0xe0, 0xba, 0xb2, 0xe0, 0xba, 0x97, 0xe0, 0xba, 0xb5, 0x20}...)
506
507         tz, _ := t.Zone()
508         b = append(b, tz...)
509
510         return string(b)
511 }
512
513 // FmtTimeFull returns the full time representation of 't' for 'lo_LA'
514 func (lo *lo_LA) FmtTimeFull(t time.Time) string {
515
516         b := make([]byte, 0, 32)
517
518         b = strconv.AppendInt(b, int64(t.Hour()), 10)
519         b = append(b, []byte{0x20, 0xe0, 0xbb, 0x82, 0xe0, 0xba, 0xa1, 0xe0, 0xba, 0x87, 0x20}...)
520         b = strconv.AppendInt(b, int64(t.Minute()), 10)
521         b = append(b, []byte{0x20, 0xe0, 0xba, 0x99, 0xe0, 0xba, 0xb2, 0xe0, 0xba, 0x97, 0xe0, 0xba, 0xb5, 0x20}...)
522
523         if t.Second() < 10 {
524                 b = append(b, '0')
525         }
526
527         b = strconv.AppendInt(b, int64(t.Second()), 10)
528         b = append(b, []byte{0x20, 0xe0, 0xba, 0xa7, 0xe0, 0xba, 0xb4, 0xe0, 0xba, 0x99, 0xe0, 0xba, 0xb2, 0xe0, 0xba, 0x97, 0xe0, 0xba, 0xb5, 0x20}...)
529
530         tz, _ := t.Zone()
531
532         if btz, ok := lo.timezones[tz]; ok {
533                 b = append(b, btz...)
534         } else {
535                 b = append(b, tz...)
536         }
537
538         return string(b)
539 }