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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
|
/***************************************************************************
* $Id: warnings.h,v 1.34 2009/06/20 09:29:15 hoganrobert Exp $
* Copyright (C) 2006 - 2008 Robert Hogan *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "tork.h"
#include <ntqstring.h>
typedef struct message_t {
const char *logmessage; /**< The full keyword (case insensitive). */
const TQString headline; /**< String (or null) describing initial value. */
char torsaid[250]; /**< String (or null) describing initial value. */
const TQString body; /**< String (or null) describing initial value. */
const TQString type; /**< String (or null) describing initial value. */
const char *icon; /**< String (or null) describing initial value. */
bool (tork::*pt2Member)();
display_status_t state; /**< The type of the value. */
bool always; /**< The type of the value. */
bool showstopper; /**< The type of the value. */
} message_t;
#define MSG(logmessage,headline,torsaid, body, type, icon, show, state, always, showstopper) \
{ logmessage, headline,torsaid,body, type, icon, show, state, always, showstopper }
static message_t _tork_messages[] = {
MSG("ommencing hibernation",
i18n("Tor Is No Longer Accepting Traffic!"),
"",
i18n("Tor has exceeded the bandwidth limits you set in "
"'My Server->Performance' and so will no longer accept traffic. To fix this, set a higher threshold in"
"'My Server->Performance'."),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("Accounting period ended",
i18n("Tor Is No Longer Accepting Traffic!"),
"",
i18n("Tor has exceeded the bandwidth limits you set in "
"'My Server->Performance' and so will no longer accept traffic. To fix this, set a higher threshold in"
"'My Server->Performance'."),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("Hibernation period ended",
i18n("Tor Is Now Accepting Traffic Again!"),
"",
i18n("Tor has completed a hibernation period that resulted from the settings you defined in "
"'My Server->Performance'. If you do not want to accept traffic, set a lower threshold in"
"'My Server->Performance'."),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("Your IP seems to have changed",
i18n("You are running a server without any contact information!"),
"",
i18n("You can set your contact info in the configuration section 'My Server'. Please do so! "),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("notorexecutable",
i18n("Can't Find Your Tor Installation!"),
"",
i18n("You need to tell me where Tor is - it's not in any of your executable paths. Run the 'First Run Wizard' again from the 'Tools' menu."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("noprivoxyexecutable",
i18n("Can't Find Your Privoxy Installation!"),
"",
i18n("You need to tell me where Privoxy is - it's not in any of your executable paths. Run the 'First Run Wizard' again from the 'Tools' menu."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("dnsrequestsdetected",
i18n("You May Be Leaking DNS Requests!"),
"",
i18n("You should inspect the 'Traffic Log' to establish which application made the DNS request. Look for :domain or :53 in the Host/Port column of the Non-Tor traffic log. It may be that the application submitting the request is not of interest to you."),
i18n("DNS Leak Warnings"),
"tork_alert",
(&tork::showDNSLeaks),
DISPLAY_NONE, false, false),
MSG("Error writing to",
i18n("Problem Accessing Files!"),
"",
i18n("You should make sure that you have the requisite access to the files required by Tor. Try typing 'tor' at the command line to investigate further."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("cannot be read",
i18n("Problem Accessing Files!"),
"",
i18n("You should make sure that you have the requesite access to the files required by Tor. Try typing 'tor' at the command line to investigate further."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("Could not chmod",
i18n("Problem Accessing Files!"),
"",
i18n("You should make sure that you have the requesite access to the files required by Tor. Try typing 'tor' at the command line to investigate further."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("Couldn't open",
i18n("Problem Accessing Files!"),
"",
i18n("You should make sure that you have the requesite access to the files required by Tor. Try typing 'tor' at the command line to investigate further."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("Error creating",
i18n("Problem Accessing Files!"),
"",
i18n("You should make sure that you have the requesite access to the files required by Tor. Try typing 'tor' at the command line to investigate further."),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("deprecated",
i18n("TorK is using a deprecated config option!"),
"",
i18n("Please report this using 'Help->Report Bug' in the menu. Try to provide as much detail as possible. Thanks!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("Unparseable address in hidden service",
i18n("Your Hidden Service Could Not Be Started!"),
"",
i18n("The address you configured for it may be invalid. See 'Tor Log' pane for details."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("Failed to parse/validate config",
i18n("TorK has passed an invalid configuration file to Tor!"),
"",
i18n("Please report this using 'Help->Report Bug' in the menu. Try to provide as much detail as possible. Thanks!"),
i18n("General Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("your clock just jumped",
i18n("Tor is having problems with your local clock!"),
"",
i18n("Please report this using 'Help->Report Bug' in the menu or directly to [email protected]. Try to provide as much detail as possible. Thanks!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("your ORPort is reachable from the outside",
i18n("Your Tor Server appears to be working!!"),
"",
i18n("You are now serving the Tor network. Be careful out there!"),
i18n("Show Usage Warnings"),
"tork_torserver",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("your DirPort is reachable from the outside",
i18n("Your Tor Server's directory appears to be working!!"),
"",
i18n("You can now serve directory listings to the Tor network. Be careful out there!"),
i18n("Show Usage Warnings"),
"tork_torserver",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("torclosedconnection",
i18n("Tor Stopped Talking To Us!!"),
"",
i18n("Try starting Tork again!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, true),
MSG("hidden service is unavailable",
i18n("The Hidden Service You Are Trying to Reach is Currently Unavailable!"),
"",
i18n("It's not just you. The hidden service you're trying to reach is actually down."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("we have none",
i18n("Tor can't retrieve a list of all servers on the network yet!"),
"",
i18n("TorK will try again as soon as Tor says it has enough info, in the meantime you can still use Tor though the servers list in the 'Tor Network' tab will be empty."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("/var/lib/tor",
i18n("You are using an old version of Tor that TorK is not compatible with!"),
"",
i18n("Try upgrading Tor through Tools->Download Tor."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("cantreadprofiles",
i18n("The file is not readable by Tork!"),
"",
i18n("Does it exist?."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("cantcopyprofile",
i18n("The file is not readable by Tork!"),
"",
i18n("Does it exist?"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("cantwritefirefoxsettings",
i18n("The file is not writeable by Tork!"),
"",
i18n("Try again maybe."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("torrunning",
i18n("TorK is connected to Tor. You need to click 'Stop' first!"),
"",
i18n("To run the setup wizard, click 'Stop' in the Anonymize tab and try again."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("bwreset",
i18n("TorK has reset the bandwidth rates on Tor as per your instructions!"),
"",
i18n("You instructed TorK to do this in 'My Bandwidth'."),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("nonanonkonqhidden",
i18n("TorK has hidden your non-anonymous Konqueror windows."),
"",
i18n("Konqueror windows that have been used non-anonymously are not suitable for anonymous work!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("nonanonkonqshown",
i18n("TorK has un-hidden your non-anonymous Konqueror windows."),
"",
i18n("Konqueror windows that were used non-anonymously are safe to use again for non-anonymous work!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("DANGEROUS_VERSION",
i18n("Your version of Tor may have problems."),
"",
i18n("You should think of using the recommended version of Tor!"),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("CIRCUIT_ESTABLISHED",
i18n("Tor is ready for use as a client."),
"",
i18n("You can now use Tor to anonymize your traffic!"),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("TOO_MANY_CONNECTIONS",
i18n("Your system has too many open connections."),
"",
i18n("You should try running 'ulimit -n 10000' to improve things."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("cookienotfound",
i18n("Tor's Authentication Cookie Not Available."),
"",
i18n("If you stored it elsewhere, please copy it to the suggested location above."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, true),
MSG("authenticationfailed",
i18n("You used the wrong password to connect to Tor!"),
"",
i18n("Check the password entered in 'My Client'."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, true),
MSG("authenticationrequired",
i18n("You need to use a password or cookie to connect to Tor!"),
"",
i18n("Enter the correct password or select cookie authentication in 'My Client'."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, true),
MSG("featuresdisabled",
i18n("You may notice some of TorK's features have been disabled/hidden!"),
"",
i18n("This is because they are for use with the 0.2.x alpha series of Tor. If you "
"run the alpha series they will be re-enabled."),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("geoipmissing",
i18n("Your GeoIP database is missing!"),
"",
i18n("TorK needs the file GeoIP.dat to assign country flags to Tor servers. "
"It looks like this file has gone missing. Please re-install GeoIP and/or TorK to fix."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, false, false),
MSG("fwdok",
i18n("Easy Accessiblity Enabled On Your Router!"),
"",
i18n("TorK has forwarded the common web ports on your router to Tor. "
"This will make your Tor server more accessible to users and other servers."
),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("unfwok",
i18n("Easy Accessibility Disabled On Your Router!"),
"",
i18n("TorK has removed the forwarding of the common web ports on your router to Tor. "
"For your Tor server to be reachable, ensure you manually configure your router."
),
i18n("Show Usage Warnings"),
"tork_info",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("fwderror",
i18n("Error Enabling Easy Accessibility On Your Router!"),
"",
i18n("It's possible that this is just temporary. TorK will try again later."
),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("unfwerror",
i18n("Error Disabling Easy Accessibility On Your Router!"),
"",
i18n("It's possible that this is just temporary. TorK will try again later."
),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
MSG("cantfindrouter",
i18n("Your Broadband Router May Not Be Plug 'n Playable!"),
"",
i18n("Check that UPnP is enabled on the router and that your computer firewall "
"allows traffic to and from the router. You can still be a server, but the "
"ports Tor uses will be the defaults rather than 443 and 80."),
i18n("Show Usage Warnings"),
"tork_alert",
(&tork::showUsage),
DISPLAY_NONE, true, false),
{ NULL, NULL, "", NULL, NULL, NULL, NULL, DISPLAY_NONE, false, false }
};
#undef MSG
|