-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcatalog.go
More file actions
102 lines (93 loc) · 3.58 KB
/
catalog.go
File metadata and controls
102 lines (93 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package ordersystem
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{
"de_DE": &dictionary{index: de_DEIndex, data: de_DEData},
}
fallback := language.MustParse("en-US")
cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback))
if err != nil {
panic(err)
}
message.DefaultCatalog = cat
}
var messageKeyToIndex = map[string]int{
"All Services and Projects": 18,
"Battery Disposal": 12,
"Cancellation Policy": 11,
"Cash by mail": 15,
"Cash payment in local store": 14,
"Contact & News": 25,
"Contact us": 26,
"DHL parcel, franked digitally": 5,
"DHL parcel, franked handwritten": 4,
"Delivery": 1,
"Digital Goods": 21,
"Germany": 0,
"Got an idea or found an error? Drop us a note!": 31,
"Imprint": 10,
"Legal": 7,
"Local Store": 20,
"Mon+Thu 2pm-6pm": 28,
"Monero and Bitcoin": 16,
"Online printing": 24,
"Online shop": 22,
"Opening hours": 27,
"Order Service": 23,
"Payment": 13,
"Pickup from locker in our local store": 3,
"Pickup in our local store": 2,
"Privacy policy": 9,
"SEPA bank transfer": 17,
"See here for short-term changes": 30,
"Terms and Conditions": 8,
"Tue+Wed+Fri+Sat 10am-2pm": 29,
"Why?": 19,
"myflexbox Locker via DPD (Germany only)": 6,
}
var de_DEIndex = []uint32{ // 33 elements
// Entry 0 - 1F
0x00000000, 0x0000000c, 0x00000014, 0x0000002f,
0x0000005b, 0x0000007f, 0x0000009b, 0x000000d1,
0x000000dd, 0x000000e1, 0x000000ed, 0x000000f7,
0x0000010a, 0x0000012a, 0x00000134, 0x00000151,
0x00000162, 0x00000175, 0x00000187, 0x000001a2,
0x000001a9, 0x000001b8, 0x000001c8, 0x000001d3,
0x000001e2, 0x000001f2, 0x00000201, 0x00000209,
0x00000219, 0x00000229, 0x0000023f, 0x00000267,
// Entry 20 - 3F
0x0000028a,
} // Size: 156 bytes
const de_DEData string = "" + // Size: 650 bytes
"\x02Deutschland\x02Versand\x02Abholung im Ladengeschäft\x02Abholung aus " +
"Schließfach im Ladengeschäft\x02DHL-Paket handschriftlich frankiert\x02D" +
"HL-Paket digital frankiert\x02myflexbox-Abholstation via DPD (nur nach D" +
"eutschland)\x02Rechtliches\x02AGB\x02Datenschutz\x02Impressum\x02Widerru" +
"fsbelehrung\x02Hinweise zur Batterieentsorgung\x02Bezahlung\x02Barzahlun" +
"g im Ladengeschäft\x02Bargeld per Post\x02Monero und Bitcoin\x02SEPA-Übe" +
"rweisung\x02Alle Angebote und Projekte\x02Warum?\x02Ladengeschäft\x02Dig" +
"itale Güter\x02Onlineshop\x02Bestellservice\x02Onlinedruckerei\x02Kontak" +
"t & News\x02Kontakt\x02Öffnungszeiten\x02Mo+Do 14-18 Uhr\x02Di+Mi+Fr+Sa " +
"10-14 Uhr\x02Sieh hier für kurzfristige Änderungen\x02Fehler oder Hinwei" +
"se? Schreib uns!"
// Total table size 806 bytes (0KiB); checksum: 4117D008