summaryrefslogtreecommitdiffhomepage
path: root/i18n/catalog.go
blob: 6bcbb9051a66f7485db15d2403ac2f13def6acc7 (plain) (blame)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.

package i18n

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{
		"el": &dictionary{index: elIndex, data: elData},
		"en": &dictionary{index: enIndex, data: enData},
		"nl": &dictionary{index: nlIndex, data: nlData},
	}
	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{
	"About":                       59,
	"About Us":                    25,
	"Andorra":                     0,
	"Austria":                     1,
	"Banknotes":                   56,
	"Belgium":                     2,
	"British- & American English": 34,
	"Coin Collecting":             54,
	"Coins":                       55,
	"Contact Us":                  28,
	"Croatia":                     10,
	"Cyprus":                      3,
	"Designs":                     42,
	"Development":                 31,
	"Discord":                     58,
	"Estonia":                     5,
	"Euro Coin Designs":           38,
	"Euro Coins":                  40,
	"Eurozone Languages":          50,
	"Feel free to contact us!":    37,
	"Finland":                     7,
	"Found a mistake or want to contribute missing information?": 36,
	"France":  8,
	"Germany": 4,
	"Greece":  9,
	"Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.": 39,
	"Home":        52,
	"Icelandic":   35,
	"Ireland":     11,
	"Italy":       12,
	"Jargon":      57,
	"Language":    60,
	"Latvia":      15,
	"Lithuania":   13,
	"Luxembourg":  14,
	"Malta":       17,
	"Mintages":    44,
	"Monaco":      16,
	"Netherlands": 18,
	"News":        53,
	"On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!": 41,
	"Open Source":          26,
	"Other Languages":      51,
	"Page not found":       24,
	"Portugal":             19,
	"Research":             32,
	"San Marino":           22,
	"Select Your Language": 48,
	"Select your preferred language to use on the site.": 49,
	"Slovakia":                 21,
	"Slovenia":                 20,
	"Spain":                    6,
	"Special Thanks":           30,
	"The Euro Cash Compendium": 61,
	"This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found %shere%s. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.": 27,
	"Translations":                       33,
	"United in":                          62,
	"Varieties":                          46,
	"Vatican City":                       23,
	"View all the known Euro varieties!": 47,
	"View the 600+ different Euro-coin designs!":      43,
	"View the mintage figures of all the Euro coins!": 45,
	"Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.":                                                                                                                                                                                                               65,
	"While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to %s or contact ‘@onetruemangoman’ on Discord.": 29,
	"cash":      64,
	"diversity": 63,
}

var elIndex = []uint32{ // 67 elements
	// Entry 0 - 1F
	0x00000000, 0x0000000d, 0x0000001c, 0x00000029,
	0x00000036, 0x00000047, 0x00000056, 0x00000065,
	0x00000078, 0x00000085, 0x00000092, 0x000000a1,
	0x000000b2, 0x000000bf, 0x000000d2, 0x000000eb,
	0x000000fa, 0x00000107, 0x00000112, 0x00000123,
	0x00000138, 0x00000149, 0x0000015a, 0x0000016e,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	// Entry 20 - 3F
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f,
	// Entry 40 - 5F
	0x0000017f, 0x0000017f, 0x0000017f,
} // Size: 292 bytes

const elData string = "" + // Size: 383 bytes
	"\x02Ανδόρα\x02Αυστρία\x02Βέλγιο\x02Κύπρος\x02Γερμανία\x02Εσθονία\x02Ισπα" +
	"νία\x02Φινλανδία\x02Γαλλία\x02Ελλάδα\x02Κροατία\x02Ιρλανδία\x02Ιταλία" +
	"\x02Λιθουανία\x02Λουξεμβούργο\x02Λετονία\x02Μονακό\x02Μάλτα\x02Ολλανδία" +
	"\x02Πορτογαλία\x02Σλοβενία\x02Σλοβακία\x02Σαν Μαρίνο\x02Βατικανό"

var enIndex = []uint32{ // 67 elements
	// Entry 0 - 1F
	0x00000000, 0x00000008, 0x00000010, 0x00000018,
	0x0000001f, 0x00000027, 0x0000002f, 0x00000035,
	0x0000003d, 0x00000044, 0x0000004b, 0x00000053,
	0x0000005b, 0x00000061, 0x0000006b, 0x00000076,
	0x0000007d, 0x00000084, 0x0000008a, 0x00000096,
	0x0000009f, 0x000000a8, 0x000000b1, 0x000000bc,
	0x000000c9, 0x000000d8, 0x000000e1, 0x000000ed,
	0x00000252, 0x0000025d, 0x0000044e, 0x0000045d,
	// Entry 20 - 3F
	0x00000469, 0x00000472, 0x0000047f, 0x0000049b,
	0x000004a5, 0x000004e0, 0x000004f9, 0x0000050b,
	0x000005ed, 0x000005f8, 0x000006b2, 0x000006ba,
	0x000006e5, 0x000006ee, 0x0000071e, 0x00000728,
	0x0000074b, 0x00000760, 0x00000793, 0x000007a6,
	0x000007b6, 0x000007bb, 0x000007c0, 0x000007d0,
	0x000007d6, 0x000007e0, 0x000007e7, 0x000007ef,
	0x000007f5, 0x000007fe, 0x00000817, 0x00000821,
	// Entry 40 - 5F
	0x0000082b, 0x00000830, 0x00000948,
} // Size: 292 bytes

const enData string = "" + // Size: 2376 bytes
	"\x02Andorra\x02Austria\x02Belgium\x02Cyprus\x02Germany\x02Estonia\x02Spa" +
	"in\x02Finland\x02France\x02Greece\x02Croatia\x02Ireland\x02Italy\x02Lith" +
	"uania\x02Luxembourg\x02Latvia\x02Monaco\x02Malta\x02Netherlands\x02Portu" +
	"gal\x02Slovenia\x02Slovakia\x02San Marino\x02Vatican City\x02Page not fo" +
	"und\x02About Us\x02Open Source\x02This website is an open project, and a" +
	" collaboration between developers, translators, and researchers. All sou" +
	"rce code, data, images, and more for the website are open source and can" +
	" be found %[1]shere%[2]s. This site is licensed under the BSD 0-Clause l" +
	"icense giving you the full freedom to do whatever you would like with an" +
	"y of the content on this site.\x02Contact Us\x02While we try to stay as " +
	"up-to-date as possible and to fact check our information, it is always p" +
	"ossible that we get something wrong, lack a translation, or are missing " +
	"some piece of data you may have. In such a case don’t hesitate to contac" +
	"t us; we’ll try to get the site updated or fixed as soon as possible. Yo" +
	"u are always free to contribute via a git patch if you are more technica" +
	"lly included, but if not you can always send an email to %[1]s or contac" +
	"t ‘@onetruemangoman’ on Discord.\x02Special Thanks\x02Development\x02Res" +
	"earch\x02Translations\x02British- & American English\x02Icelandic\x02Fou" +
	"nd a mistake or want to contribute missing information?\x02Feel free to " +
	"contact us!\x02Euro Coin Designs\x02Here you’ll be able to view all the " +
	"coin designs for each country in the Eurozone. This section of the site " +
	"doesn’t include minor varieties such as different mintmarks or errors; t" +
	"hose are on the %[1]svarieties%[2]s page.\x02Euro Coins\x02On this secti" +
	"on of the site you can find everything there is to know about the coins " +
	"of the Eurozone. For the latest news on coin- and design releases, check" +
	" out the %[1]snews%[2]s tab!\x02Designs\x02View the 600+ different Euro-" +
	"coin designs!\x02Mintages\x02View the mintage figures of all the Euro co" +
	"ins!\x02Varieties\x02View all the known Euro varieties!\x02Select Your L" +
	"anguage\x02Select your preferred language to use on the site.\x02Eurozon" +
	"e Languages\x02Other Languages\x02Home\x02News\x02Coin Collecting\x02Coi" +
	"ns\x02Banknotes\x02Jargon\x02Discord\x02About\x02Language\x02The Euro Ca" +
	"sh Compendium\x02United in\x02diversity\x02cash\x02Welcome to the Euro C" +
	"ash Compendium. This sites aims to be a resource for you to discover eve" +
	"rything there is to know about the coins and banknotes of the Euro, a cu" +
	"rrency that spans 26 countries and 350 million people. We also have dedi" +
	"cated sections of the site for collectors."

var nlIndex = []uint32{ // 67 elements
	// Entry 0 - 1F
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	// Entry 20 - 3F
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	// Entry 40 - 5F
	0x00000000, 0x00000000, 0x00000000,
} // Size: 292 bytes

const nlData string = ""

// Total table size 3635 bytes (3KiB); checksum: 7ECD21C9