pl_PL.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. package pl_PL
  2. import (
  3. "math"
  4. "strconv"
  5. "time"
  6. "github.com/go-playground/locales"
  7. "github.com/go-playground/locales/currency"
  8. )
  9. type pl_PL struct {
  10. locale string
  11. pluralsCardinal []locales.PluralRule
  12. pluralsOrdinal []locales.PluralRule
  13. pluralsRange []locales.PluralRule
  14. decimal []byte
  15. group []byte
  16. minus []byte
  17. percent []byte
  18. perMille []byte
  19. timeSeparator []byte
  20. inifinity []byte
  21. currencies [][]byte // idx = enum of currency code
  22. currencyPositiveSuffix []byte
  23. currencyNegativePrefix []byte
  24. currencyNegativeSuffix []byte
  25. monthsAbbreviated [][]byte
  26. monthsNarrow [][]byte
  27. monthsWide [][]byte
  28. daysAbbreviated [][]byte
  29. daysNarrow [][]byte
  30. daysShort [][]byte
  31. daysWide [][]byte
  32. periodsAbbreviated [][]byte
  33. periodsNarrow [][]byte
  34. periodsShort [][]byte
  35. periodsWide [][]byte
  36. erasAbbreviated [][]byte
  37. erasNarrow [][]byte
  38. erasWide [][]byte
  39. timezones map[string][]byte
  40. }
  41. // New returns a new instance of translator for the 'pl_PL' locale
  42. func New() locales.Translator {
  43. return &pl_PL{
  44. locale: "pl_PL",
  45. pluralsCardinal: []locales.PluralRule{2, 4, 5, 6},
  46. pluralsOrdinal: []locales.PluralRule{6},
  47. pluralsRange: []locales.PluralRule{4, 5, 6, 2},
  48. decimal: []byte{0x2c},
  49. group: []byte{0xc2, 0xa0},
  50. minus: []byte{0x2d},
  51. percent: []byte{0x25},
  52. perMille: []byte{0xe2, 0x80, 0xb0},
  53. timeSeparator: []byte{0x3a},
  54. inifinity: []byte{0xe2, 0x88, 0x9e},
  55. currencies: [][]uint8{{0x41, 0x44, 0x50, 0x20}, {0x41, 0x45, 0x44, 0x20}, {0x41, 0x46, 0x41, 0x20}, {0x41, 0x46, 0x4e, 0x20}, {0x41, 0x4c, 0x4b, 0x20}, {0x41, 0x4c, 0x4c, 0x20}, {0x41, 0x4d, 0x44, 0x20}, {0x41, 0x4e, 0x47, 0x20}, {0x41, 0x4f, 0x41, 0x20}, {0x41, 0x4f, 0x4b, 0x20}, {0x41, 0x4f, 0x4e, 0x20}, {0x41, 0x4f, 0x52, 0x20}, {0x41, 0x52, 0x41, 0x20}, {0x41, 0x52, 0x4c, 0x20}, {0x41, 0x52, 0x4d, 0x20}, {0x41, 0x52, 0x50, 0x20}, {0x41, 0x52, 0x53, 0x20}, {0x41, 0x54, 0x53, 0x20}, {0x41, 0x55, 0x44, 0x20}, {0x41, 0x57, 0x47, 0x20}, {0x41, 0x5a, 0x4d, 0x20}, {0x41, 0x5a, 0x4e, 0x20}, {0x42, 0x41, 0x44, 0x20}, {0x42, 0x41, 0x4d, 0x20}, {0x42, 0x41, 0x4e, 0x20}, {0x42, 0x42, 0x44, 0x20}, {0x42, 0x44, 0x54, 0x20}, {0x42, 0x45, 0x43, 0x20}, {0x42, 0x45, 0x46, 0x20}, {0x42, 0x45, 0x4c, 0x20}, {0x42, 0x47, 0x4c, 0x20}, {0x42, 0x47, 0x4d, 0x20}, {0x42, 0x47, 0x4e, 0x20}, {0x42, 0x47, 0x4f, 0x20}, {0x42, 0x48, 0x44, 0x20}, {0x42, 0x49, 0x46, 0x20}, {0x42, 0x4d, 0x44, 0x20}, {0x42, 0x4e, 0x44, 0x20}, {0x42, 0x4f, 0x42, 0x20}, {0x42, 0x4f, 0x4c, 0x20}, {0x42, 0x4f, 0x50, 0x20}, {0x42, 0x4f, 0x56, 0x20}, {0x42, 0x52, 0x42, 0x20}, {0x42, 0x52, 0x43, 0x20}, {0x42, 0x52, 0x45, 0x20}, {0x42, 0x52, 0x4c, 0x20}, {0x42, 0x52, 0x4e, 0x20}, {0x42, 0x52, 0x52, 0x20}, {0x42, 0x52, 0x5a, 0x20}, {0x42, 0x53, 0x44, 0x20}, {0x42, 0x54, 0x4e, 0x20}, {0x42, 0x55, 0x4b, 0x20}, {0x42, 0x57, 0x50, 0x20}, {0x42, 0x59, 0x42, 0x20}, {0x42, 0x59, 0x52, 0x20}, {0x42, 0x5a, 0x44, 0x20}, {0x43, 0x41, 0x44, 0x20}, {0x43, 0x44, 0x46, 0x20}, {0x43, 0x48, 0x45, 0x20}, {0x43, 0x48, 0x46, 0x20}, {0x43, 0x48, 0x57, 0x20}, {0x43, 0x4c, 0x45, 0x20}, {0x43, 0x4c, 0x46, 0x20}, {0x43, 0x4c, 0x50, 0x20}, {0x43, 0x4e, 0x58, 0x20}, {0x43, 0x4e, 0x59, 0x20}, {0x43, 0x4f, 0x50, 0x20}, {0x43, 0x4f, 0x55, 0x20}, {0x43, 0x52, 0x43, 0x20}, {0x43, 0x53, 0x44, 0x20}, {0x43, 0x53, 0x4b, 0x20}, {0x43, 0x55, 0x43, 0x20}, {0x43, 0x55, 0x50, 0x20}, {0x43, 0x56, 0x45, 0x20}, {0x43, 0x59, 0x50, 0x20}, {0x43, 0x5a, 0x4b, 0x20}, {0x44, 0x44, 0x4d, 0x20}, {0x44, 0x45, 0x4d, 0x20}, {0x44, 0x4a, 0x46, 0x20}, {0x44, 0x4b, 0x4b, 0x20}, {0x44, 0x4f, 0x50, 0x20}, {0x44, 0x5a, 0x44, 0x20}, {0x45, 0x43, 0x53, 0x20}, {0x45, 0x43, 0x56, 0x20}, {0x45, 0x45, 0x4b, 0x20}, {0x45, 0x47, 0x50, 0x20}, {0x45, 0x52, 0x4e, 0x20}, {0x45, 0x53, 0x41, 0x20}, {0x45, 0x53, 0x42, 0x20}, {0x45, 0x53, 0x50, 0x20}, {0x45, 0x54, 0x42, 0x20}, {0x45, 0x55, 0x52, 0x20}, {0x46, 0x49, 0x4d, 0x20}, {0x46, 0x4a, 0x44, 0x20}, {0x46, 0x4b, 0x50, 0x20}, {0x46, 0x52, 0x46, 0x20}, {0x47, 0x42, 0x50, 0x20}, {0x47, 0x45, 0x4b, 0x20}, {0x47, 0x45, 0x4c, 0x20}, {0x47, 0x48, 0x43, 0x20}, {0x47, 0x48, 0x53, 0x20}, {0x47, 0x49, 0x50, 0x20}, {0x47, 0x4d, 0x44, 0x20}, {0x47, 0x4e, 0x46, 0x20}, {0x47, 0x4e, 0x53, 0x20}, {0x47, 0x51, 0x45, 0x20}, {0x47, 0x52, 0x44, 0x20}, {0x47, 0x54, 0x51, 0x20}, {0x47, 0x57, 0x45, 0x20}, {0x47, 0x57, 0x50, 0x20}, {0x47, 0x59, 0x44, 0x20}, {0x48, 0x4b, 0x44, 0x20}, {0x48, 0x4e, 0x4c, 0x20}, {0x48, 0x52, 0x44, 0x20}, {0x48, 0x52, 0x4b, 0x20}, {0x48, 0x54, 0x47, 0x20}, {0x48, 0x55, 0x46, 0x20}, {0x49, 0x44, 0x52, 0x20}, {0x49, 0x45, 0x50, 0x20}, {0x49, 0x4c, 0x50, 0x20}, {0x49, 0x4c, 0x52, 0x20}, {0x49, 0x4c, 0x53, 0x20}, {0x49, 0x4e, 0x52, 0x20}, {0x49, 0x51, 0x44, 0x20}, {0x49, 0x52, 0x52, 0x20}, {0x49, 0x53, 0x4a, 0x20}, {0x49, 0x53, 0x4b, 0x20}, {0x49, 0x54, 0x4c, 0x20}, {0x4a, 0x4d, 0x44, 0x20}, {0x4a, 0x4f, 0x44, 0x20}, {0x4a, 0x50, 0x59, 0x20}, {0x4b, 0x45, 0x53, 0x20}, {0x4b, 0x47, 0x53, 0x20}, {0x4b, 0x48, 0x52, 0x20}, {0x4b, 0x4d, 0x46, 0x20}, {0x4b, 0x50, 0x57, 0x20}, {0x4b, 0x52, 0x48, 0x20}, {0x4b, 0x52, 0x4f, 0x20}, {0x4b, 0x52, 0x57, 0x20}, {0x4b, 0x57, 0x44, 0x20}, {0x4b, 0x59, 0x44, 0x20}, {0x4b, 0x5a, 0x54, 0x20}, {0x4c, 0x41, 0x4b, 0x20}, {0x4c, 0x42, 0x50, 0x20}, {0x4c, 0x4b, 0x52, 0x20}, {0x4c, 0x52, 0x44, 0x20}, {0x4c, 0x53, 0x4c, 0x20}, {0x4c, 0x54, 0x4c, 0x20}, {0x4c, 0x54, 0x54, 0x20}, {0x4c, 0x55, 0x43, 0x20}, {0x4c, 0x55, 0x46, 0x20}, {0x4c, 0x55, 0x4c, 0x20}, {0x4c, 0x56, 0x4c, 0x20}, {0x4c, 0x56, 0x52, 0x20}, {0x4c, 0x59, 0x44, 0x20}, {0x4d, 0x41, 0x44, 0x20}, {0x4d, 0x41, 0x46, 0x20}, {0x4d, 0x43, 0x46, 0x20}, {0x4d, 0x44, 0x43, 0x20}, {0x4d, 0x44, 0x4c, 0x20}, {0x4d, 0x47, 0x41, 0x20}, {0x4d, 0x47, 0x46, 0x20}, {0x4d, 0x4b, 0x44, 0x20}, {0x4d, 0x4b, 0x4e, 0x20}, {0x4d, 0x4c, 0x46, 0x20}, {0x4d, 0x4d, 0x4b, 0x20}, {0x4d, 0x4e, 0x54, 0x20}, {0x4d, 0x4f, 0x50, 0x20}, {0x4d, 0x52, 0x4f, 0x20}, {0x4d, 0x54, 0x4c, 0x20}, {0x4d, 0x54, 0x50, 0x20}, {0x4d, 0x55, 0x52, 0x20}, {0x4d, 0x56, 0x50, 0x20}, {0x4d, 0x56, 0x52, 0x20}, {0x4d, 0x57, 0x4b, 0x20}, {0x4d, 0x58, 0x4e, 0x20}, {0x4d, 0x58, 0x50, 0x20}, {0x4d, 0x58, 0x56, 0x20}, {0x4d, 0x59, 0x52, 0x20}, {0x4d, 0x5a, 0x45, 0x20}, {0x4d, 0x5a, 0x4d, 0x20}, {0x4d, 0x5a, 0x4e, 0x20}, {0x4e, 0x41, 0x44, 0x20}, {0x4e, 0x47, 0x4e, 0x20}, {0x4e, 0x49, 0x43, 0x20}, {0x4e, 0x49, 0x4f, 0x20}, {0x4e, 0x4c, 0x47, 0x20}, {0x4e, 0x4f, 0x4b, 0x20}, {0x4e, 0x50, 0x52, 0x20}, {0x4e, 0x5a, 0x44, 0x20}, {0x4f, 0x4d, 0x52, 0x20}, {0x50, 0x41, 0x42, 0x20}, {0x50, 0x45, 0x49, 0x20}, {0x50, 0x45, 0x4e, 0x20}, {0x50, 0x45, 0x53, 0x20}, {0x50, 0x47, 0x4b, 0x20}, {0x50, 0x48, 0x50, 0x20}, {0x50, 0x4b, 0x52, 0x20}, {0x50, 0x4c, 0x4e, 0x20}, {0x50, 0x4c, 0x5a, 0x20}, {0x50, 0x54, 0x45, 0x20}, {0x50, 0x59, 0x47, 0x20}, {0x51, 0x41, 0x52, 0x20}, {0x52, 0x48, 0x44, 0x20}, {0x52, 0x4f, 0x4c, 0x20}, {0x52, 0x4f, 0x4e, 0x20}, {0x52, 0x53, 0x44, 0x20}, {0x52, 0x55, 0x42, 0x20}, {0x52, 0x55, 0x52, 0x20}, {0x52, 0x57, 0x46, 0x20}, {0x53, 0x41, 0x52, 0x20}, {0x53, 0x42, 0x44, 0x20}, {0x53, 0x43, 0x52, 0x20}, {0x53, 0x44, 0x44, 0x20}, {0x53, 0x44, 0x47, 0x20}, {0x53, 0x44, 0x50, 0x20}, {0x53, 0x45, 0x4b, 0x20}, {0x53, 0x47, 0x44, 0x20}, {0x53, 0x48, 0x50, 0x20}, {0x53, 0x49, 0x54, 0x20}, {0x53, 0x4b, 0x4b, 0x20}, {0x53, 0x4c, 0x4c, 0x20}, {0x53, 0x4f, 0x53, 0x20}, {0x53, 0x52, 0x44, 0x20}, {0x53, 0x52, 0x47, 0x20}, {0x53, 0x53, 0x50, 0x20}, {0x53, 0x54, 0x44, 0x20}, {0x53, 0x55, 0x52, 0x20}, {0x53, 0x56, 0x43, 0x20}, {0x53, 0x59, 0x50, 0x20}, {0x53, 0x5a, 0x4c, 0x20}, {0x54, 0x48, 0x42, 0x20}, {0x54, 0x4a, 0x52, 0x20}, {0x54, 0x4a, 0x53, 0x20}, {0x54, 0x4d, 0x4d, 0x20}, {0x54, 0x4d, 0x54, 0x20}, {0x54, 0x4e, 0x44, 0x20}, {0x54, 0x4f, 0x50, 0x20}, {0x54, 0x50, 0x45, 0x20}, {0x54, 0x52, 0x4c, 0x20}, {0x54, 0x52, 0x59, 0x20}, {0x54, 0x54, 0x44, 0x20}, {0x54, 0x57, 0x44, 0x20}, {0x54, 0x5a, 0x53, 0x20}, {0x55, 0x41, 0x48, 0x20}, {0x55, 0x41, 0x4b, 0x20}, {0x55, 0x47, 0x53, 0x20}, {0x55, 0x47, 0x58, 0x20}, {0x55, 0x53, 0x44, 0x20}, {0x55, 0x53, 0x4e, 0x20}, {0x55, 0x53, 0x53, 0x20}, {0x55, 0x59, 0x49, 0x20}, {0x55, 0x59, 0x50, 0x20}, {0x55, 0x59, 0x55, 0x20}, {0x55, 0x5a, 0x53, 0x20}, {0x56, 0x45, 0x42, 0x20}, {0x56, 0x45, 0x46, 0x20}, {0x56, 0x4e, 0x44, 0x20}, {0x56, 0x4e, 0x4e, 0x20}, {0x56, 0x55, 0x56, 0x20}, {0x57, 0x53, 0x54, 0x20}, {0x58, 0x41, 0x46, 0x20}, {0x58, 0x41, 0x47, 0x20}, {0x58, 0x41, 0x55, 0x20}, {0x58, 0x42, 0x41, 0x20}, {0x58, 0x42, 0x42, 0x20}, {0x58, 0x42, 0x43, 0x20}, {0x58, 0x42, 0x44, 0x20}, {0x58, 0x43, 0x44, 0x20}, {0x58, 0x44, 0x52, 0x20}, {0x58, 0x45, 0x55, 0x20}, {0x58, 0x46, 0x4f, 0x20}, {0x58, 0x46, 0x55, 0x20}, {0x58, 0x4f, 0x46, 0x20}, {0x58, 0x50, 0x44, 0x20}, {0x58, 0x50, 0x46, 0x20}, {0x58, 0x50, 0x54, 0x20}, {0x58, 0x52, 0x45, 0x20}, {0x58, 0x53, 0x55, 0x20}, {0x58, 0x54, 0x53, 0x20}, {0x58, 0x55, 0x41, 0x20}, {0x58, 0x58, 0x58, 0x20}, {0x59, 0x44, 0x44, 0x20}, {0x59, 0x45, 0x52, 0x20}, {0x59, 0x55, 0x44, 0x20}, {0x59, 0x55, 0x4d, 0x20}, {0x59, 0x55, 0x4e, 0x20}, {0x59, 0x55, 0x52, 0x20}, {0x5a, 0x41, 0x4c, 0x20}, {0x5a, 0x41, 0x52, 0x20}, {0x5a, 0x4d, 0x4b, 0x20}, {0x5a, 0x4d, 0x57, 0x20}, {0x5a, 0x52, 0x4e, 0x20}, {0x5a, 0x52, 0x5a, 0x20}, {0x5a, 0x57, 0x44, 0x20}, {0x5a, 0x57, 0x4c, 0x20}, {0x5a, 0x57, 0x52, 0x20}},
  56. currencyPositiveSuffix: []byte{0xc2, 0xa0},
  57. currencyNegativePrefix: []byte{0x28},
  58. currencyNegativeSuffix: []byte{0xc2, 0xa0, 0x29},
  59. monthsAbbreviated: [][]uint8{[]uint8(nil), {0x73, 0x74, 0x79}, {0x6c, 0x75, 0x74}, {0x6d, 0x61, 0x72}, {0x6b, 0x77, 0x69}, {0x6d, 0x61, 0x6a}, {0x63, 0x7a, 0x65}, {0x6c, 0x69, 0x70}, {0x73, 0x69, 0x65}, {0x77, 0x72, 0x7a}, {0x70, 0x61, 0xc5, 0xba}, {0x6c, 0x69, 0x73}, {0x67, 0x72, 0x75}},
  60. monthsNarrow: [][]uint8{[]uint8(nil), {0x73}, {0x6c}, {0x6d}, {0x6b}, {0x6d}, {0x63}, {0x6c}, {0x73}, {0x77}, {0x70}, {0x6c}, {0x67}},
  61. monthsWide: [][]uint8{[]uint8(nil), {0x73, 0x74, 0x79, 0x63, 0x7a, 0x6e, 0x69, 0x61}, {0x6c, 0x75, 0x74, 0x65, 0x67, 0x6f}, {0x6d, 0x61, 0x72, 0x63, 0x61}, {0x6b, 0x77, 0x69, 0x65, 0x74, 0x6e, 0x69, 0x61}, {0x6d, 0x61, 0x6a, 0x61}, {0x63, 0x7a, 0x65, 0x72, 0x77, 0x63, 0x61}, {0x6c, 0x69, 0x70, 0x63, 0x61}, {0x73, 0x69, 0x65, 0x72, 0x70, 0x6e, 0x69, 0x61}, {0x77, 0x72, 0x7a, 0x65, 0xc5, 0x9b, 0x6e, 0x69, 0x61}, {0x70, 0x61, 0xc5, 0xba, 0x64, 0x7a, 0x69, 0x65, 0x72, 0x6e, 0x69, 0x6b, 0x61}, {0x6c, 0x69, 0x73, 0x74, 0x6f, 0x70, 0x61, 0x64, 0x61}, {0x67, 0x72, 0x75, 0x64, 0x6e, 0x69, 0x61}},
  62. daysAbbreviated: [][]uint8{{0x6e, 0x69, 0x65, 0x64, 0x7a, 0x2e}, {0x70, 0x6f, 0x6e, 0x2e}, {0x77, 0x74, 0x2e}, {0xc5, 0x9b, 0x72, 0x2e}, {0x63, 0x7a, 0x77, 0x2e}, {0x70, 0x74, 0x2e}, {0x73, 0x6f, 0x62, 0x2e}},
  63. daysNarrow: [][]uint8{{0x4e}, {0x50}, {0x57}, {0xc5, 0x9a}, {0x43}, {0x50}, {0x53}},
  64. daysShort: [][]uint8{{0x6e, 0x69, 0x65}, {0x70, 0x6f, 0x6e}, {0x77, 0x74, 0x6f}, {0xc5, 0x9b, 0x72, 0x6f}, {0x63, 0x7a, 0x77}, {0x70, 0x69, 0xc4, 0x85}, {0x73, 0x6f, 0x62}},
  65. daysWide: [][]uint8{{0x6e, 0x69, 0x65, 0x64, 0x7a, 0x69, 0x65, 0x6c, 0x61}, {0x70, 0x6f, 0x6e, 0x69, 0x65, 0x64, 0x7a, 0x69, 0x61, 0xc5, 0x82, 0x65, 0x6b}, {0x77, 0x74, 0x6f, 0x72, 0x65, 0x6b}, {0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x61}, {0x63, 0x7a, 0x77, 0x61, 0x72, 0x74, 0x65, 0x6b}, {0x70, 0x69, 0xc4, 0x85, 0x74, 0x65, 0x6b}, {0x73, 0x6f, 0x62, 0x6f, 0x74, 0x61}},
  66. periodsAbbreviated: [][]uint8{{0x41, 0x4d}, {0x50, 0x4d}},
  67. periodsNarrow: [][]uint8{{0x61}, {0x70}},
  68. periodsWide: [][]uint8{{0x41, 0x4d}, {0x50, 0x4d}},
  69. erasAbbreviated: [][]uint8{{0x70, 0x2e, 0x6e, 0x2e, 0x65, 0x2e}, {0x6e, 0x2e, 0x65, 0x2e}},
  70. erasNarrow: [][]uint8{[]uint8(nil), []uint8(nil)},
  71. erasWide: [][]uint8{{0x70, 0x2e, 0x6e, 0x2e, 0x65, 0x2e}, {0x6e, 0x2e, 0x65, 0x2e}},
  72. timezones: map[string][]uint8{"ACWST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x2d, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "BT": {0x42, 0x68, 0x75, 0x74, 0x61, 0x6e}, "CHAST": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "AST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x20, 0x61, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x79, 0x63, 0x6b, 0x69}, "SGT": {0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x75, 0x72}, "JDT": {0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "AKDT": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "HKST": {0x48, 0x6f, 0x6e, 0x67, 0x6b, 0x6f, 0x6e, 0x67, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "SRT": {0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d}, "BOT": {0x42, 0x6f, 0x6c, 0x69, 0x77, 0x69, 0x61}, "TMT": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "UYT": {0x55, 0x72, 0x75, 0x67, 0x77, 0x61, 0x6a, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "ChST": {0x43, 0x7a, 0x61, 0x6d, 0x6f, 0x72, 0x72, 0x6f}, "MYT": {0x4d, 0x61, 0x6c, 0x65, 0x7a, 0x6a, 0x61}, "WARST": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x79, 0x6e, 0x61, 0x20, 0x5a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "∅∅∅": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x61, 0x6d, 0x61, 0x7a, 0x6f, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "WITA": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x6a, 0x61, 0x20, 0xc5, 0x9a, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x61}, "CLT": {0x43, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "GYT": {0x47, 0x75, 0x6a, 0x61, 0x6e, 0x61}, "WIB": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x6a, 0x61, 0x20, 0x5a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x61}, "CDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x61, 0x6d, 0x65, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "CLST": {0x43, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "EST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x6d, 0x65, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "AKST": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "WEZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "ECT": {0x45, 0x6b, 0x77, 0x61, 0x64, 0x6f, 0x72}, "ACDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "CHADT": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "CST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x61, 0x6d, 0x65, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "MDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x67, 0xc3, 0xb3, 0x72, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "GFT": {0x47, 0x75, 0x6a, 0x61, 0x6e, 0x61, 0x20, 0x46, 0x72, 0x61, 0x6e, 0x63, 0x75, 0x73, 0x6b, 0x61}, "HAT": {0x4e, 0x6f, 0x77, 0x61, 0x20, 0x46, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "NZDT": {0x4e, 0x6f, 0x77, 0x61, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "AWST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "WAST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x66, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "AEDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "SAST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x70, 0x6f, 0xc5, 0x82, 0x75, 0x64, 0x6e, 0x69, 0x6f, 0x77, 0x6f, 0x61, 0x66, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69}, "MESZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "PDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x70, 0x61, 0x63, 0x79, 0x66, 0x69, 0x63, 0x7a, 0x6e, 0x79, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "NZST": {0x4e, 0x6f, 0x77, 0x61, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "HKT": {0x48, 0x6f, 0x6e, 0x67, 0x6b, 0x6f, 0x6e, 0x67, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "TMST": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "EAT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x66, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69}, "GMT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x75, 0x6e, 0x69, 0x77, 0x65, 0x72, 0x73, 0x61, 0x6c, 0x6e, 0x79}, "WART": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x79, 0x6e, 0x61, 0x20, 0x5a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "WIT": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x6a, 0x61, 0x20, 0x57, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x61}, "COST": {0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "HAST": {0x48, 0x61, 0x77, 0x61, 0x6a, 0x65, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x79, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "MST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x67, 0xc3, 0xb3, 0x72, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "EDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x6d, 0x65, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "OEZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "ART": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x79, 0x6e, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "WAT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x66, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "MEZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "PST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x70, 0x61, 0x63, 0x79, 0x66, 0x69, 0x63, 0x7a, 0x6e, 0x79, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "JST": {0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "LHDT": {0x4c, 0x6f, 0x72, 0x64, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "AWDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "COT": {0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "CAT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x61, 0x66, 0x72, 0x79, 0x6b, 0x61, 0xc5, 0x84, 0x73, 0x6b, 0x69}, "HNT": {0x4e, 0x6f, 0x77, 0x61, 0x20, 0x46, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64, 0x69, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "VET": {0x57, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0x61}, "ACST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79}, "AEST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0x6b, 0x69}, "HADT": {0x48, 0x61, 0x77, 0x61, 0x6a, 0x65, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x79, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "ADT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x61, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x79, 0x63, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "OESZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x77, 0x73, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "ARST": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x79, 0x6e, 0x61, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}, "ACWDT": {0x43, 0x7a, 0x61, 0x73, 0x20, 0xc5, 0x9b, 0x72, 0x6f, 0x64, 0x6b, 0x6f, 0x77, 0x6f, 0x2d, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "LHST": {0x4c, 0x6f, 0x72, 0x64, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x79, 0x29}, "WESZ": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x7a, 0x61, 0x63, 0x68, 0x6f, 0x64, 0x6e, 0x69, 0x6f, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x6a, 0x73, 0x6b, 0x69, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69}, "IST": {0x43, 0x7a, 0x61, 0x73, 0x20, 0x69, 0x6e, 0x64, 0x79, 0x6a, 0x73, 0x6b, 0x69}, "UYST": {0x55, 0x72, 0x75, 0x67, 0x77, 0x61, 0x6a, 0x20, 0x28, 0x63, 0x7a, 0x61, 0x73, 0x20, 0x6c, 0x65, 0x74, 0x6e, 0x69, 0x29}},
  73. }
  74. }
  75. // Locale returns the current translators string locale
  76. func (pl *pl_PL) Locale() string {
  77. return pl.locale
  78. }
  79. // PluralsCardinal returns the list of cardinal plural rules associated with 'pl_PL'
  80. func (pl *pl_PL) PluralsCardinal() []locales.PluralRule {
  81. return pl.pluralsCardinal
  82. }
  83. // PluralsOrdinal returns the list of ordinal plural rules associated with 'pl_PL'
  84. func (pl *pl_PL) PluralsOrdinal() []locales.PluralRule {
  85. return pl.pluralsOrdinal
  86. }
  87. // PluralsRange returns the list of range plural rules associated with 'pl_PL'
  88. func (pl *pl_PL) PluralsRange() []locales.PluralRule {
  89. return pl.pluralsRange
  90. }
  91. // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'pl_PL'
  92. func (pl *pl_PL) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
  93. n := math.Abs(num)
  94. i := int64(n)
  95. iMod10 := i % 10
  96. iMod100 := i % 100
  97. if i == 1 && v == 0 {
  98. return locales.PluralRuleOne
  99. } else if v == 0 && iMod10 >= 2 && iMod10 <= 4 && iMod100 < 12 && iMod100 > 14 {
  100. return locales.PluralRuleFew
  101. } else if (v == 0 && i != 1 && iMod10 >= 0 && iMod10 <= 1) || (v == 0 && iMod10 >= 5 && iMod10 <= 9) || (v == 0 && iMod100 >= 12 && iMod100 <= 14) {
  102. return locales.PluralRuleMany
  103. }
  104. return locales.PluralRuleOther
  105. }
  106. // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'pl_PL'
  107. func (pl *pl_PL) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
  108. return locales.PluralRuleOther
  109. }
  110. // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'pl_PL'
  111. func (pl *pl_PL) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
  112. start := pl.CardinalPluralRule(num1, v1)
  113. end := pl.CardinalPluralRule(num2, v2)
  114. if start == locales.PluralRuleOne && end == locales.PluralRuleFew {
  115. return locales.PluralRuleFew
  116. } else if start == locales.PluralRuleOne && end == locales.PluralRuleMany {
  117. return locales.PluralRuleMany
  118. } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
  119. return locales.PluralRuleOther
  120. } else if start == locales.PluralRuleFew && end == locales.PluralRuleFew {
  121. return locales.PluralRuleFew
  122. } else if start == locales.PluralRuleFew && end == locales.PluralRuleMany {
  123. return locales.PluralRuleMany
  124. } else if start == locales.PluralRuleFew && end == locales.PluralRuleOther {
  125. return locales.PluralRuleOther
  126. } else if start == locales.PluralRuleMany && end == locales.PluralRuleOne {
  127. return locales.PluralRuleOne
  128. } else if start == locales.PluralRuleMany && end == locales.PluralRuleFew {
  129. return locales.PluralRuleFew
  130. } else if start == locales.PluralRuleMany && end == locales.PluralRuleMany {
  131. return locales.PluralRuleMany
  132. } else if start == locales.PluralRuleMany && end == locales.PluralRuleOther {
  133. return locales.PluralRuleOther
  134. } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
  135. return locales.PluralRuleOne
  136. } else if start == locales.PluralRuleOther && end == locales.PluralRuleFew {
  137. return locales.PluralRuleFew
  138. } else if start == locales.PluralRuleOther && end == locales.PluralRuleMany {
  139. return locales.PluralRuleMany
  140. }
  141. return locales.PluralRuleOther
  142. }
  143. // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
  144. func (pl *pl_PL) MonthAbbreviated(month time.Month) []byte {
  145. return pl.monthsAbbreviated[month]
  146. }
  147. // MonthsAbbreviated returns the locales abbreviated months
  148. func (pl *pl_PL) MonthsAbbreviated() [][]byte {
  149. return pl.monthsAbbreviated[1:]
  150. }
  151. // MonthNarrow returns the locales narrow month given the 'month' provided
  152. func (pl *pl_PL) MonthNarrow(month time.Month) []byte {
  153. return pl.monthsNarrow[month]
  154. }
  155. // MonthsNarrow returns the locales narrow months
  156. func (pl *pl_PL) MonthsNarrow() [][]byte {
  157. return pl.monthsNarrow[1:]
  158. }
  159. // MonthWide returns the locales wide month given the 'month' provided
  160. func (pl *pl_PL) MonthWide(month time.Month) []byte {
  161. return pl.monthsWide[month]
  162. }
  163. // MonthsWide returns the locales wide months
  164. func (pl *pl_PL) MonthsWide() [][]byte {
  165. return pl.monthsWide[1:]
  166. }
  167. // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
  168. func (pl *pl_PL) WeekdayAbbreviated(weekday time.Weekday) []byte {
  169. return pl.daysAbbreviated[weekday]
  170. }
  171. // WeekdaysAbbreviated returns the locales abbreviated weekdays
  172. func (pl *pl_PL) WeekdaysAbbreviated() [][]byte {
  173. return pl.daysAbbreviated
  174. }
  175. // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
  176. func (pl *pl_PL) WeekdayNarrow(weekday time.Weekday) []byte {
  177. return pl.daysNarrow[weekday]
  178. }
  179. // WeekdaysNarrow returns the locales narrow weekdays
  180. func (pl *pl_PL) WeekdaysNarrow() [][]byte {
  181. return pl.daysNarrow
  182. }
  183. // WeekdayShort returns the locales short weekday given the 'weekday' provided
  184. func (pl *pl_PL) WeekdayShort(weekday time.Weekday) []byte {
  185. return pl.daysShort[weekday]
  186. }
  187. // WeekdaysShort returns the locales short weekdays
  188. func (pl *pl_PL) WeekdaysShort() [][]byte {
  189. return pl.daysShort
  190. }
  191. // WeekdayWide returns the locales wide weekday given the 'weekday' provided
  192. func (pl *pl_PL) WeekdayWide(weekday time.Weekday) []byte {
  193. return pl.daysWide[weekday]
  194. }
  195. // WeekdaysWide returns the locales wide weekdays
  196. func (pl *pl_PL) WeekdaysWide() [][]byte {
  197. return pl.daysWide
  198. }
  199. // FmtNumber returns 'num' with digits/precision of 'v' for 'pl_PL' and handles both Whole and Real numbers based on 'v'
  200. // returned as a []byte just in case the caller wishes to add more and can help
  201. // avoid allocations; otherwise just cast as string.
  202. func (pl *pl_PL) FmtNumber(num float64, v uint64) []byte {
  203. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  204. l := len(s) + len(pl.decimal) + len(pl.group)*len(s[:len(s)-int(v)-1])/3
  205. count := 0
  206. inWhole := v == 0
  207. b := make([]byte, 0, l)
  208. for i := len(s) - 1; i >= 0; i-- {
  209. if s[i] == '.' {
  210. b = append(b, pl.decimal[0])
  211. inWhole = true
  212. continue
  213. }
  214. if inWhole {
  215. if count == 3 {
  216. for j := len(pl.group) - 1; j >= 0; j-- {
  217. b = append(b, pl.group[j])
  218. }
  219. count = 1
  220. } else {
  221. count++
  222. }
  223. }
  224. b = append(b, s[i])
  225. }
  226. if num < 0 {
  227. b = append(b, pl.minus[0])
  228. }
  229. // reverse
  230. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  231. b[i], b[j] = b[j], b[i]
  232. }
  233. return b
  234. }
  235. // FmtPercent returns 'num' with digits/precision of 'v' for 'pl_PL' and handles both Whole and Real numbers based on 'v'
  236. // returned as a []byte just in case the caller wishes to add more and can help
  237. // avoid allocations; otherwise just cast as string.
  238. // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
  239. func (pl *pl_PL) FmtPercent(num float64, v uint64) []byte {
  240. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  241. l := len(s) + len(pl.decimal)
  242. b := make([]byte, 0, l)
  243. for i := len(s) - 1; i >= 0; i-- {
  244. if s[i] == '.' {
  245. b = append(b, pl.decimal[0])
  246. continue
  247. }
  248. b = append(b, s[i])
  249. }
  250. if num < 0 {
  251. b = append(b, pl.minus[0])
  252. }
  253. // reverse
  254. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  255. b[i], b[j] = b[j], b[i]
  256. }
  257. b = append(b, pl.percent...)
  258. return b
  259. }
  260. // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'pl_PL'
  261. // returned as a []byte just in case the caller wishes to add more and can help
  262. // avoid allocations; otherwise just cast as string.
  263. func (pl *pl_PL) FmtCurrency(num float64, v uint64, currency currency.Type) []byte {
  264. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  265. symbol := pl.currencies[currency]
  266. l := len(s) + len(pl.decimal) + len(pl.group)*len(s[:len(s)-int(v)-1])/3
  267. count := 0
  268. inWhole := v == 0
  269. b := make([]byte, 0, l)
  270. for i := len(s) - 1; i >= 0; i-- {
  271. if s[i] == '.' {
  272. b = append(b, pl.decimal[0])
  273. inWhole = true
  274. continue
  275. }
  276. if inWhole {
  277. if count == 3 {
  278. for j := len(pl.group) - 1; j >= 0; j-- {
  279. b = append(b, pl.group[j])
  280. }
  281. count = 1
  282. } else {
  283. count++
  284. }
  285. }
  286. b = append(b, s[i])
  287. }
  288. if num < 0 {
  289. b = append(b, pl.minus[0])
  290. }
  291. // reverse
  292. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  293. b[i], b[j] = b[j], b[i]
  294. }
  295. if int(v) < 2 {
  296. if v == 0 {
  297. b = append(b, pl.decimal...)
  298. }
  299. for i := 0; i < 2-int(v); i++ {
  300. b = append(b, '0')
  301. }
  302. }
  303. b = append(b, pl.currencyPositiveSuffix...)
  304. b = append(b, symbol...)
  305. return b
  306. }
  307. // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'pl_PL'
  308. // in accounting notation. returned as a []byte just in case the caller wishes to add more and can help
  309. // avoid allocations; otherwise just cast as string.
  310. func (pl *pl_PL) FmtAccounting(num float64, v uint64, currency currency.Type) []byte {
  311. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  312. symbol := pl.currencies[currency]
  313. l := len(s) + len(pl.decimal) + len(pl.group)*len(s[:len(s)-int(v)-1])/3
  314. count := 0
  315. inWhole := v == 0
  316. b := make([]byte, 0, l)
  317. for i := len(s) - 1; i >= 0; i-- {
  318. if s[i] == '.' {
  319. b = append(b, pl.decimal[0])
  320. inWhole = true
  321. continue
  322. }
  323. if inWhole {
  324. if count == 3 {
  325. for j := len(pl.group) - 1; j >= 0; j-- {
  326. b = append(b, pl.group[j])
  327. }
  328. count = 1
  329. } else {
  330. count++
  331. }
  332. }
  333. b = append(b, s[i])
  334. }
  335. if num < 0 {
  336. for j := len(pl.currencyNegativePrefix) - 1; j >= 0; j-- {
  337. b = append(b, pl.currencyNegativePrefix[j])
  338. }
  339. }
  340. // reverse
  341. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  342. b[i], b[j] = b[j], b[i]
  343. }
  344. if int(v) < 2 {
  345. if v == 0 {
  346. b = append(b, pl.decimal...)
  347. }
  348. for i := 0; i < 2-int(v); i++ {
  349. b = append(b, '0')
  350. }
  351. }
  352. if num < 0 {
  353. b = append(b, pl.currencyNegativeSuffix...)
  354. b = append(b, symbol...)
  355. } else {
  356. b = append(b, pl.currencyPositiveSuffix...)
  357. b = append(b, symbol...)
  358. }
  359. return b
  360. }
  361. // FmtDateShort returns the short date representation of 't' for 'pl_PL'
  362. // returned as a []byte just in case the caller wishes to add more and can help
  363. // avoid allocations; otherwise just cast as string.
  364. func (pl *pl_PL) FmtDateShort(t time.Time) []byte {
  365. b := make([]byte, 0, 32)
  366. if t.Day() < 10 {
  367. b = append(b, '0')
  368. }
  369. b = strconv.AppendInt(b, int64(t.Day()), 10)
  370. b = append(b, []byte{0x2e}...)
  371. if t.Month() < 10 {
  372. b = append(b, '0')
  373. }
  374. b = strconv.AppendInt(b, int64(t.Month()), 10)
  375. b = append(b, []byte{0x2e}...)
  376. b = strconv.AppendInt(b, int64(t.Year()), 10)
  377. return b
  378. }
  379. // FmtDateMedium returns the medium date representation of 't' for 'pl_PL'
  380. // returned as a []byte just in case the caller wishes to add more and can help
  381. // avoid allocations; otherwise just cast as string.
  382. func (pl *pl_PL) FmtDateMedium(t time.Time) []byte {
  383. b := make([]byte, 0, 32)
  384. if t.Day() < 10 {
  385. b = append(b, '0')
  386. }
  387. b = strconv.AppendInt(b, int64(t.Day()), 10)
  388. b = append(b, []byte{0x2e}...)
  389. if t.Month() < 10 {
  390. b = append(b, '0')
  391. }
  392. b = strconv.AppendInt(b, int64(t.Month()), 10)
  393. b = append(b, []byte{0x2e}...)
  394. b = strconv.AppendInt(b, int64(t.Year()), 10)
  395. return b
  396. }
  397. // FmtDateLong returns the long date representation of 't' for 'pl_PL'
  398. // returned as a []byte just in case the caller wishes to add more and can help
  399. // avoid allocations; otherwise just cast as string.
  400. func (pl *pl_PL) FmtDateLong(t time.Time) []byte {
  401. b := make([]byte, 0, 32)
  402. b = strconv.AppendInt(b, int64(t.Day()), 10)
  403. b = append(b, []byte{0x20}...)
  404. b = append(b, pl.monthsWide[t.Month()]...)
  405. b = append(b, []byte{0x20}...)
  406. b = strconv.AppendInt(b, int64(t.Year()), 10)
  407. return b
  408. }
  409. // FmtDateFull returns the full date representation of 't' for 'pl_PL'
  410. // returned as a []byte just in case the caller wishes to add more and can help
  411. // avoid allocations; otherwise just cast as string.
  412. func (pl *pl_PL) FmtDateFull(t time.Time) []byte {
  413. b := make([]byte, 0, 32)
  414. b = append(b, pl.daysWide[t.Weekday()]...)
  415. b = append(b, []byte{0x2c, 0x20}...)
  416. b = strconv.AppendInt(b, int64(t.Day()), 10)
  417. b = append(b, []byte{0x20}...)
  418. b = append(b, pl.monthsWide[t.Month()]...)
  419. b = append(b, []byte{0x20}...)
  420. b = strconv.AppendInt(b, int64(t.Year()), 10)
  421. return b
  422. }
  423. // FmtTimeShort returns the short time representation of 't' for 'pl_PL'
  424. // returned as a []byte just in case the caller wishes to add more and can help
  425. // avoid allocations; otherwise just cast as string.
  426. func (pl *pl_PL) FmtTimeShort(t time.Time) []byte {
  427. b := make([]byte, 0, 32)
  428. if t.Hour() < 10 {
  429. b = append(b, '0')
  430. }
  431. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  432. b = append(b, pl.timeSeparator...)
  433. if t.Minute() < 10 {
  434. b = append(b, '0')
  435. }
  436. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  437. return b
  438. }
  439. // FmtTimeMedium returns the medium time representation of 't' for 'pl_PL'
  440. // returned as a []byte just in case the caller wishes to add more and can help
  441. // avoid allocations; otherwise just cast as string.
  442. func (pl *pl_PL) FmtTimeMedium(t time.Time) []byte {
  443. b := make([]byte, 0, 32)
  444. if t.Hour() < 10 {
  445. b = append(b, '0')
  446. }
  447. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  448. b = append(b, pl.timeSeparator...)
  449. if t.Minute() < 10 {
  450. b = append(b, '0')
  451. }
  452. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  453. b = append(b, pl.timeSeparator...)
  454. if t.Second() < 10 {
  455. b = append(b, '0')
  456. }
  457. b = strconv.AppendInt(b, int64(t.Second()), 10)
  458. return b
  459. }
  460. // FmtTimeLong returns the long time representation of 't' for 'pl_PL'
  461. // returned as a []byte just in case the caller wishes to add more and can help
  462. // avoid allocations; otherwise just cast as string.
  463. func (pl *pl_PL) FmtTimeLong(t time.Time) []byte {
  464. b := make([]byte, 0, 32)
  465. if t.Hour() < 10 {
  466. b = append(b, '0')
  467. }
  468. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  469. b = append(b, pl.timeSeparator...)
  470. if t.Minute() < 10 {
  471. b = append(b, '0')
  472. }
  473. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  474. b = append(b, pl.timeSeparator...)
  475. if t.Second() < 10 {
  476. b = append(b, '0')
  477. }
  478. b = strconv.AppendInt(b, int64(t.Second()), 10)
  479. b = append(b, []byte{0x20}...)
  480. tz, _ := t.Zone()
  481. b = append(b, tz...)
  482. return b
  483. }
  484. // FmtTimeFull returns the full time representation of 't' for 'pl_PL'
  485. // returned as a []byte just in case the caller wishes to add more and can help
  486. // avoid allocations; otherwise just cast as string.
  487. func (pl *pl_PL) FmtTimeFull(t time.Time) []byte {
  488. b := make([]byte, 0, 32)
  489. if t.Hour() < 10 {
  490. b = append(b, '0')
  491. }
  492. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  493. b = append(b, pl.timeSeparator...)
  494. if t.Minute() < 10 {
  495. b = append(b, '0')
  496. }
  497. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  498. b = append(b, pl.timeSeparator...)
  499. if t.Second() < 10 {
  500. b = append(b, '0')
  501. }
  502. b = strconv.AppendInt(b, int64(t.Second()), 10)
  503. b = append(b, []byte{0x20}...)
  504. tz, _ := t.Zone()
  505. if btz, ok := pl.timezones[tz]; ok {
  506. b = append(b, btz...)
  507. } else {
  508. b = append(b, tz...)
  509. }
  510. return b
  511. }