summaryrefslogtreecommitdiff
path: root/client/zgotext.go
blob: ccee4803d8fc28882cb4fefeab213717343a77d8 (plain)
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.

package client

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{
		"cs":  &dictionary{index: csIndex, data: csData},
		"da":  &dictionary{index: daIndex, data: daData},
		"de":  &dictionary{index: deIndex, data: deData},
		"en":  &dictionary{index: enIndex, data: enData},
		"es":  &dictionary{index: esIndex, data: esData},
		"fr":  &dictionary{index: frIndex, data: frData},
		"it":  &dictionary{index: itIndex, data: itData},
		"nl":  &dictionary{index: nlIndex, data: nlData},
		"pt":  &dictionary{index: ptIndex, data: ptData},
		"sl":  &dictionary{index: slIndex, data: slData},
		"uk":  &dictionary{index: ukIndex, data: ukData},
		"und": &dictionary{index: undIndex, data: undData},
	}
	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{
	"%s. The cause of the error is: %s.":                                                  7,
	"An internal error occurred":                                                          8,
	"Failed to add a secure internet server with organisation ID: '%s'":                   1,
	"Failed to add a server with URL: '%s'":                                               2,
	"Failed to add an institute access server with URL: '%s'":                             0,
	"Failed to connect to server":                                                         11,
	"Failed to obtain a VPN configuration for the server":                                 12,
	"Failed to obtain the list of organizations":                                          4,
	"Failed to obtain the list of servers":                                                5,
	"IP network does not contain incremented IP: %v":                                      9,
	"The client tried to autoconnect to the server, but the operation failed to complete": 10,
	"The input: '%s' is not a valid URL":                                                  3,
	"Timeout reached contacting URL: '%s'":                                                6,
}

var csIndex = []uint32{ // 14 elements
	0x00000000, 0x00000045, 0x00000094, 0x000000c1,
	0x000000e2, 0x0000010c, 0x00000133, 0x00000169,
	0x0000018c, 0x000001a6, 0x000001a6, 0x000001a6,
	0x000001a6, 0x000001a6,
} // Size: 80 bytes

const csData string = "" + // Size: 422 bytes
	"\x02Nepodařilo se přidat přístupový server instituce s URL: '%[1]s'\x02N" +
	"epodařilo se přidat bezpečný internetový server s ID organizace: '%[1]s'" +
	"\x02Nepodařilo se přidat server s URL: '%[1]s'\x02Vstup: '%[1]s' není pl" +
	"atná URL\x02Nepodařilo se získat seznam organizací\x02Nepodařilo se získ" +
	"at seznam serverů\x02Vypršel časový limit připojování k URL: '%[1]s'\x02" +
	"%[1]s. Příčina chyby je: %[2]s.\x02Došlo k vnitřní chybě"

var daIndex = []uint32{ // 14 elements
	0x00000000, 0x00000046, 0x0000009b, 0x000000ce,
	0x000000f8, 0x00000128, 0x0000014f, 0x00000182,
	0x000001a0, 0x000001b9, 0x000001b9, 0x000001b9,
	0x000001b9, 0x000001b9,
} // Size: 80 bytes

const daData string = "" + // Size: 441 bytes
	"\x02Kunne ikke tilføje en server for institutadgang med URL’en '%[1]s'" +
	"\x02Kunne ikke tilføje en server for sikkert internet med organisations-" +
	"ID’et '%[1]s'\x02Kunne ikke tilføje en server med URL’en '%[1]s'\x02Inpu" +
	"ttet '%[1]s' er ikke nogen gyldig URL\x02Kunne ikke få fat i listen over" +
	" organisationer\x02Kunne ikke få fat i listen af servere\x02Timeout i fo" +
	"rsøget på at tilgå URL’en '%[1]s'\x02%[1]s. Fejlen skyldes: %[2]s.\x02De" +
	"r skete en intern fejl"

var deIndex = []uint32{ // 14 elements
	0x00000000, 0x00000047, 0x0000009c, 0x000000d7,
	0x00000103, 0x00000134, 0x0000015e, 0x0000018f,
	0x000001b4, 0x000001d8, 0x000001d8, 0x000001d8,
	0x000001d8, 0x000001d8,
} // Size: 80 bytes

const deData string = "" + // Size: 472 bytes
	"\x02Fehler beim Hinzufügen eines Institutszugangsservers mit URL: '%[1]s" +
	"'\x02Fehler beim Hinzufügen eines sicheren Internetservers mit Organisat" +
	"ions-ID: '%[1]s'\x02Fehler beim Hinzufügen eines Servers mit der URL: '%" +
	"[1]s'\x02Die Eingabe: '%[1]s' ist keine gültige URL\x02Fehler beim Abruf" +
	"en der Liste von Organisationen\x02Fehler beim Abrufen der Liste von Ser" +
	"vern\x02Zeitüberschreitung beim Aufruf der URL: '%[1]s'\x02%[1]s. Die Fe" +
	"hlerursache ist: %[2]s.\x02Ein interner Fehler ist aufgetreten"

var enIndex = []uint32{ // 14 elements
	0x00000000, 0x0000003b, 0x00000080, 0x000000a9,
	0x000000cf, 0x000000fa, 0x0000011f, 0x00000147,
	0x00000170, 0x0000018b, 0x000001bd, 0x00000211,
	0x0000022d, 0x00000261,
} // Size: 80 bytes

const enData string = "" + // Size: 609 bytes
	"\x02Failed to add an institute access server with URL: '%[1]s'\x02Failed" +
	" to add a secure internet server with organisation ID: '%[1]s'\x02Failed" +
	" to add a server with URL: '%[1]s'\x02The input: '%[1]s' is not a valid " +
	"URL\x02Failed to obtain the list of organizations\x02Failed to obtain th" +
	"e list of servers\x02Timeout reached contacting URL: '%[1]s'\x02%[1]s. T" +
	"he cause of the error is: %[2]s.\x02An internal error occurred\x02IP net" +
	"work does not contain incremented IP: %[1]v\x02The client tried to autoc" +
	"onnect to the server, but the operation failed to complete\x02Failed to " +
	"connect to server\x02Failed to obtain a VPN configuration for the server"

var esIndex = []uint32{ // 14 elements
	0x00000000, 0x00000054, 0x000000a7, 0x000000d7,
	0x00000101, 0x00000138, 0x00000164, 0x000001a8,
	0x000001cd, 0x000001e6, 0x000001e6, 0x000001e6,
	0x000001e6, 0x000001e6,
} // Size: 80 bytes

const esData string = "" + // Size: 486 bytes
	"\x02Error al agregar el servidor de acceso a la institución. URL del ser" +
	"vidor: '%[1]s'\x02No se pudo añadir un servidor de internet seguro con I" +
	"D de organización: '%[1]s'\x02No se pudo añadir un servidor con URL: '%[" +
	"1]s'\x02La entrada: '%[1]s' no es una URL válida\x02No se ha podido obte" +
	"ner la lista de las organizaciones\x02Error al obtener la lista de los s" +
	"ervidores\x02Se ha alcanzado el tiempo de espera para conectar con la UR" +
	"L: %[1]s\x02%[1]s. La causa del error es: %[2]s.\x02Se ha producido un e" +
	"rror"

var frIndex = []uint32{ // 14 elements
	0x00000000, 0x0000004e, 0x000000aa, 0x000000e0,
	0x0000010e, 0x0000013f, 0x0000016b, 0x000001a1,
	0x000001d0, 0x000001f2, 0x000001f2, 0x000001f2,
	0x000001f2, 0x000001f2,
} // Size: 80 bytes

const frData string = "" + // Size: 498 bytes
	"\x02Échec de l'ajout d'un serveur d'accès à un institut avec l'URL\u202f" +
	": '%[1]s'\x02Échec de l'ajout d'un serveur d'accès à un institut avec l'" +
	"ID d'organisation\u202f: '%[1]s'\x02Échec de l'ajout d'un serveur avec l" +
	"'URL\u202f: '%[1]s'\x02L'entrée\u202f: '%[1]s' n'est pas un URL valide" +
	"\x02Échec de l'obtention de liste des organisations\x02Échec l'obtention" +
	" de la liste des serveurs\x02Délai maximal atteint pour contacter l'URL" +
	"\u202f: %[1]s\x02%[1]s. La cause de cette erreur est\u202f: %[2]s.\x02Un" +
	"e erreur interne s'est produite"

var itIndex = []uint32{ // 14 elements
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000,
} // Size: 80 bytes

const itData string = ""

var nlIndex = []uint32{ // 14 elements
	0x00000000, 0x0000004d, 0x000000a4, 0x000000e0,
	0x00000110, 0x00000148, 0x0000017b, 0x000001ab,
	0x000001d6, 0x000001f5, 0x000001f5, 0x000001f5,
	0x000001f5, 0x000001f5,
} // Size: 80 bytes

const nlData string = "" + // Size: 501 bytes
	"\x02Het is mislukt om een institute access server toe te voegen met URL:" +
	" '%[1]s'\x02Het is mislukt om een secure internet server toe te voegen m" +
	"et organisatie ID: '%[1]s'\x02Het is mislukt om een server toe te voegen" +
	" met URL: '%[1]s'\x02Het ingegeven veld: '%[1]s' is geen geldige URL\x02" +
	"Het is mislukt om de lijst van organisaties op te halen\x02Het is misluk" +
	"t om de lijst van servers op te halen\x02Er is een time-out opgetreden v" +
	"oor URL: '%[1]s'\x02%[1]s. The oorzaak van de error is: %[2]s.\x02Een in" +
	"terne fout is opgetreden"

var ptIndex = []uint32{ // 14 elements
	0x00000000, 0x00000047, 0x0000009a, 0x000000ca,
	0x000000f4, 0x0000011d, 0x00000142, 0x00000188,
	0x000001aa, 0x000001c2, 0x000001c2, 0x000001c2,
	0x000001c2, 0x000001c2,
} // Size: 80 bytes

const ptData string = "" + // Size: 450 bytes
	"\x02Falha ao adicionar um servidor de acesso ao instituto com URL: '%[1]" +
	"s'\x02Falha ao adicionar um servidor de Internet seguro com ID da organi" +
	"zação: '%[1]s'\x02Falha ao adicionar um servidor com URL: '%[1]s'\x02A e" +
	"ntrada: '%[1]s' não é um URL válido\x02Falha ao obter a lista de organiz" +
	"ações\x02Falha ao obter a lista de servidores\x02O tempo limite foi atin" +
	"gido para entrar em contato com o URL: '%[1]s'\x02%[1]s. A causa do erro" +
	" é: %[2]s.\x02Ocorreu um erro interno"

var slIndex = []uint32{ // 14 elements
	0x00000000, 0x00000050, 0x00000099, 0x000000cc,
	0x000000e9, 0x00000115, 0x00000141, 0x00000187,
	0x000001a6, 0x000001c4, 0x000001c4, 0x000001c4,
	0x000001c4, 0x000001c4,
} // Size: 80 bytes

const slData string = "" + // Size: 452 bytes
	"\x02Napaka pri dodajanju strežnika za dostop do ustanove. Strežnikov URL" +
	": '%[1]s'\x02Napaka pri dodajanju strežnika za varni splet. Strežnikov U" +
	"RL: '%[1]s'\x02Napaka pri dodajanju strežnika z URL-jem: '%[1]s'\x02Vnos" +
	" \x22%[1]s\x22 ni veljaven URL\x02Napaka pri pridobivanju seznama organi" +
	"zacij\x02Napaka pri pridobivanju seznama strežnikov\x02Pri dostopu do UR" +
	"L-ja \x22%[1]s\x22 je prišlo do preteka časovne kontrole\x02%[1]s. Vzrok" +
	" napake je: %[2]s.\x02Prišlo je do notranje napake"

var ukIndex = []uint32{ // 14 elements
	0x00000000, 0x00000074, 0x00000108, 0x00000157,
	0x0000019b, 0x000001e4, 0x00000227, 0x00000280,
	0x000002ad, 0x000002de, 0x000002de, 0x000002de,
	0x000002de, 0x000002de,
} // Size: 80 bytes

const ukData string = "" + // Size: 734 bytes
	"\x02Не вдалося додати сервер доступу до інституту з URL-адресою: '%[1]s'" +
	"\x02Не вдалося додати захищений Інтернет-сервер з ідентифікатором органі" +
	"зації: '%[1]s'\x02Не вдалося додати сервер із URL-адресою: '%[1]s'\x02В" +
	"ведення: '%[1]s' не є дійсною URL-адресою\x02Не вдалося отримати список" +
	" організацій\x02Не вдалося отримати список серверів\x02Час очікування до" +
	"сягнуто URL-адреси зв’язку: '%[1]s'\x02%[1]s. Причина помилки: %[2]s." +
	"\x02Сталася внутрішня помилка"

var undIndex = []uint32{ // 14 elements
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000, 0x00000000, 0x00000000,
	0x00000000, 0x00000000,
} // Size: 80 bytes

const undData string = ""

// Total table size 6025 bytes (5KiB); checksum: 3F638AA