pay/locales_gen.go

78 lines
2.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package main
import (
"golang.org/x/text/language"
"golang.org/x/text/message"
"golang.org/x/text/message/catalog"
)
type dictionary struct {
index []uint32
data string
}
func (d *dictionary) Lookup(key string) (data string, ok bool) {
p, ok := messageKeyToIndex[key]
if !ok {
return "", false
}
start, end := d.index[p], d.index[p+1]
if start == end {
return "", false
}
return d.data[start:end], true
}
func init() {
dict := map[string]catalog.Dictionary{
"en": &dictionary{index: enIndex, data: enData},
"ru": &dictionary{index: ruIndex, data: ruData},
}
fallback := language.MustParse("en")
cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback))
if err != nil {
panic(err)
}
message.DefaultCatalog = cat
}
var messageKeyToIndex = map[string]int{
"Donate": 1,
"Donate $%d to %s": 0,
"annually": 7,
"contribution frequency": 3,
"dollar amount": 2,
"from Russia": 8,
"monthly": 6,
"one time": 4,
"weekly": 5,
}
var enIndex = []uint32{ // 10 elements
0x00000000, 0x00000051, 0x00000058, 0x00000066,
0x0000007d, 0x00000086, 0x0000008d, 0x00000095,
0x0000009e, 0x000000aa,
} // Size: 64 bytes
const enData string = "" + // Size: 170 bytes
"\x14\x01\x81\x01\x00=\x00\x10\x02Donate to %[2]s=\x01\x1d\x02Donate oned" +
"ollar™ to %[2]s\x00\x17\x02Donate $%[1]d to %[2]s\x02Donate\x02dollar am" +
"ount\x02contribution frequency\x02one time\x02weekly\x02monthly\x02annua" +
"lly\x02from Russia"
var ruIndex = []uint32{ // 10 elements
0x00000000, 0x0000007f, 0x00000098, 0x000000b7,
0x000000d5, 0x000000ec, 0x00000103, 0x00000118,
0x00000129, 0x0000013b,
} // Size: 64 bytes
const ruData string = "" + // Size: 315 bytes
"\x14\x01\x81\x01\x00=\x00\x1f\x02Пожертвовать %[2]s=\x01-\x02Пожертвоват" +
"ь долор™ %[2]s\x00&\x02Пожертвовать $%[1]d %[2]s\x02Пожертвовать\x02сум" +
"ма в долларах\x02частота взносов\x02единоразово\x02еженедельно\x02ежеме" +
"сячно\x02ежегодно\x02из России"
// Total table size 613 bytes (0KiB); checksum: 7E1ACFAA