summaryrefslogtreecommitdiff
path: root/client/zgotext.go
blob: 5c93b5eceac9f2fe231f1b681e40b984f2a93236 (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
// 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{
		"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},
		"sl": &dictionary{index: slIndex, data: slData},
		"uk": &dictionary{index: ukIndex, data: ukData},
	}
	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{
	"An internal error occurred":                                                                    2,
	"Failed to add a secure internet server with organisation ID: '%s'":                             4,
	"Failed to add a server with URL: '%s'":                                                         5,
	"Failed to add an institute access server with URL: '%s'":                                       3,
	"Failed to connect to server: '%s'":                                                             7,
	"Failed to obtain a VPN configuration for server: '%s'":                                         8,
	"Failed to obtain the list of organizations":                                                    9,
	"Failed to obtain the list of servers":                                                          10,
	"The cause of the error is:":                                                                    12,
	"The client tried to autoconnect to the VPN server: '%s', but the operation failed to complete": 1,
	"The client tried to autoconnect to the VPN server: '%s', but you need to authorizate again. Please manually connect again": 0,
	"The input: '%s' is not a valid URL":   6,
	"Timeout reached contacting URL: '%s'": 11,
}

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

const daData string = ""

var deIndex = []uint32{ // 14 elements
	0x00000000, 0x000000a6, 0x0000012c, 0x00000150,
	0x00000150, 0x00000150, 0x00000150, 0x00000150,
	0x00000150, 0x00000150, 0x00000150, 0x00000150,
	0x00000150, 0x00000150,
} // Size: 80 bytes

const deData string = "" + // Size: 336 bytes
	"\x02Der Client hat versucht, sich automatisch mit dem VPN-Server '%[1]s'" +
	" zu verbinden, aber Sie müssen sich erneut autorisieren. Bitte verbinden" +
	" sie sich manuell erneut\x02Der Client hat versucht, sich automatisch mi" +
	"t dem VPN-Server '%[1]s' zu verbinden, aber der Vorgang konnte nicht abg" +
	"eschlossen werden\x02Ein interner Fehler ist aufgetreten"

var enIndex = []uint32{ // 14 elements
	0x00000000, 0x0000007d, 0x000000de, 0x000000f9,
	0x00000134, 0x00000179, 0x000001a2, 0x000001c8,
	0x000001ed, 0x00000226, 0x00000251, 0x00000276,
	0x0000029e, 0x000002b9,
} // Size: 80 bytes

const enData string = "" + // Size: 697 bytes
	"\x02The client tried to autoconnect to the VPN server: '%[1]s', but you " +
	"need to authorizate again. Please manually connect again\x02The client t" +
	"ried to autoconnect to the VPN server: '%[1]s', but the operation failed" +
	" to complete\x02An internal error occurred\x02Failed to add an institute" +
	" access server with URL: '%[1]s'\x02Failed to add a secure internet serv" +
	"er 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 connect to se" +
	"rver: '%[1]s'\x02Failed to obtain a VPN configuration for server: '%[1]s" +
	"'\x02Failed to obtain the list of organizations\x02Failed to obtain the " +
	"list of servers\x02Timeout reached contacting URL: '%[1]s'\x02The cause " +
	"of the error is:"

var esIndex = []uint32{ // 14 elements
	0x00000000, 0x0000008c, 0x000000ef, 0x00000108,
	0x00000108, 0x00000108, 0x00000108, 0x00000108,
	0x00000108, 0x00000108, 0x00000108, 0x00000108,
	0x00000108, 0x00000108,
} // Size: 80 bytes

const esData string = "" + // Size: 264 bytes
	"\x02El cliente intentó autoconectarse al servidor VPN: '%[1]s', pero nec" +
	"esita autorizarse de nuevo. Por favor, conéctese manualmente de nuevo" +
	"\x02El cliente intentó autoconectarse al servidor VPN: %[1]s', pero la o" +
	"peración no se ha completado\x02Se ha producido un error"

var frIndex = []uint32{ // 14 elements
	0x00000000, 0x0000009f, 0x0000010d, 0x0000012f,
	0x0000017d, 0x000001d9, 0x0000020f, 0x0000023d,
	0x0000026b, 0x000002b2, 0x000002e3, 0x0000030f,
	0x0000030f, 0x0000030f,
} // Size: 80 bytes

const frData string = "" + // Size: 783 bytes
	"\x02Le client a essayé de se connecter automatiquement au serveur VPN" +
	"\u202f: '%[1]s', mais vous devez l'autoriser de nouveau. Veuillez vous r" +
	"econnecter manuellement\x02Le client a essayé de se connecter automatiqu" +
	"ement au serveur VPN\u202f: '%[1]s', mais l'opération a échouée\x02Une e" +
	"rreur interne s'est produite\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 la connexion au serveur\u202f: '%" +
	"[1]s'\x02Échec d'obtention d'une configuration VPN pour le serveur\u202f" +
	": '%[1]s'\x02Échec de l'obtention de liste des organisations\x02Échec l'" +
	"obtention de la liste des serveurs"

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, 0x00000087, 0x000000de, 0x000000fd,
	0x0000014a, 0x000001a1, 0x000001dd, 0x0000020d,
	0x00000240, 0x00000288, 0x000002c0, 0x000002f3,
	0x000002f3, 0x000002f3,
} // Size: 80 bytes

const nlData string = "" + // Size: 755 bytes
	"\x02De client wilde automatisch verbinden met de VPN server: '%[1]s', ma" +
	"ar er is geen geldige authorizatie. Verbind handmatig nog een keer\x02De" +
	" client wilde automatisch verbinden met de VPN server: '%[1]s', maar het" +
	" was mislukt\x02Een interne fout is opgetreden\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 met organisatie ID: '%[1]s'" +
	"\x02Het is mislukt om een server toe te voegen met URL: '%[1]s'\x02Het i" +
	"ngegeven veld: '%[1]s' is geen geldige URL\x02Het is mislukt om te verbi" +
	"nden met server: '%[1]s'\x02Het is mislukt om een VPN configuratie op te" +
	" halen voor server: '%[1]s'\x02Het is mislukt om de lijst van organisati" +
	"es op te halen\x02Het is mislukt om de lijst van servers op te halen"

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

const slData string = "\x02Prišlo je do notranje napake"

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

const ukData string = ""

// Total table size 3585 bytes (3KiB); checksum: 536B5521