~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to g10/helptext.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Mueller
  • Date: 2005-03-29 10:30:32 UTC
  • Revision ID: james.westby@ubuntu.com-20050329103032-sj42n2ain3ipx310
Tags: upstream-1.9.15
ImportĀ upstreamĀ versionĀ 1.9.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* helptext.c  - English help texts
 
2
 * Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
3
 *
 
4
 * This file is part of GnuPG.
 
5
 *
 
6
 * GnuPG is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * GnuPG is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
19
 */
 
20
 
 
21
#include <config.h>
 
22
#include <stdio.h>
 
23
#include <stdlib.h>
 
24
#include <string.h>
 
25
 
 
26
#include "gpg.h"
 
27
#include "util.h"
 
28
#include "ttyio.h"
 
29
#include "main.h"
 
30
#include "i18n.h"
 
31
 
 
32
 
 
33
/****************
 
34
 * These helptexts are used for the "online" help feature. We use
 
35
 * a key consisting of words and dots.  Because the lookup is only
 
36
 * done in an interactive mode on a user request (when she enters a "?"
 
37
 * as response to a prompt) we can use a simple search through the list.
 
38
 *
 
39
 * Mini glossary:
 
40
 *
 
41
 * "user ID", "trustdb", "NOTE" and "WARNING".
 
42
 */
 
43
 
 
44
static struct helptexts { const char *key; const char *help; } helptexts[] = {
 
45
 
 
46
/* begin of list */
 
47
 
 
48
{ "edit_ownertrust.value", N_(
 
49
"It's up to you to assign a value here; this value will never be exported\n"
 
50
"to any 3rd party.  We need it to implement the web-of-trust; it has nothing\n"
 
51
"to do with the (implicitly created) web-of-certificates."
 
52
)},
 
53
 
 
54
{ "edit_ownertrust.set_ultimate.okay", N_(
 
55
 "To build the Web-of-Trust, GnuPG needs to know which keys are\n"
 
56
 "ultimately trusted - those are usually the keys for which you have\n"
 
57
 "access to the secret key.  Answer \"yes\" to set this key to\n"
 
58
 "ultimately trusted\n"
 
59
)},
 
60
 
 
61
{ "revoked_key.override", N_(
 
62
"If you want to use this revoked key anyway, answer \"yes\"."
 
63
)},
 
64
 
 
65
{ "untrusted_key.override", N_(
 
66
"If you want to use this untrusted key anyway, answer \"yes\"."
 
67
)},
 
68
 
 
69
{ "pklist.user_id.enter", N_(
 
70
"Enter the user ID of the addressee to whom you want to send the message."
 
71
)},
 
72
 
 
73
{ "keygen.algo", N_(
 
74
"Select the algorithm to use.\n"
 
75
"\n"
 
76
"DSA (aka DSS) is the digital signature algorithm which can only be used\n"
 
77
"for signatures.  This is the suggested algorithm because verification of\n"
 
78
"DSA signatures are much faster than those of ElGamal.\n"
 
79
"\n"
 
80
"ElGamal is an algorithm which can be used for signatures and encryption.\n"
 
81
"OpenPGP distinguishs between two flavors of this algorithms: an encrypt only\n"
 
82
"and a sign+encrypt; actually it is the same, but some parameters must be\n"
 
83
"selected in a special way to create a safe key for signatures: this program\n"
 
84
"does this but other OpenPGP implementations are not required to understand\n"
 
85
"the signature+encryption flavor.\n"
 
86
"\n"
 
87
"The first (primary) key must always be a key which is capable of signing;\n"
 
88
"this is the reason why the encryption only ElGamal key is not available in\n"
 
89
"this menu."
 
90
)},
 
91
 
 
92
 
 
93
{ "keygen.algo.elg_se", N_(
 
94
"Although these keys are defined in RFC2440 they are not suggested\n"
 
95
"because they are not supported by all programs and signatures created\n"
 
96
"with them are quite large and very slow to verify."
 
97
)},
 
98
 
 
99
{ "keygen.algo.rsa_se", N_(
 
100
"In general it is not a good idea to use the same key for signing and\n"
 
101
"encryption.  This algorithm should only be used in certain domains.\n"
 
102
"Please consult your security expert first."
 
103
)},
 
104
 
 
105
 
 
106
{ "keygen.size", N_(
 
107
 "Enter the size of the key"
 
108
)},
 
109
 
 
110
{ "keygen.size.huge.okay", N_(
 
111
 "Answer \"yes\" or \"no\""
 
112
)},
 
113
 
 
114
 
 
115
{ "keygen.size.large.okay", N_(
 
116
 "Answer \"yes\" or \"no\""
 
117
)},
 
118
 
 
119
 
 
120
{ "keygen.valid", N_(
 
121
 "Enter the required value as shown in the prompt.\n"
 
122
 "It is possible to enter a ISO date (YYYY-MM-DD) but you won't\n"
 
123
 "get a good error response - instead the system tries to interpret\n"
 
124
 "the given value as an interval."
 
125
)},
 
126
 
 
127
{ "keygen.valid.okay", N_(
 
128
 "Answer \"yes\" or \"no\""
 
129
)},
 
130
 
 
131
 
 
132
{ "keygen.name", N_(
 
133
 "Enter the name of the key holder"
 
134
)},
 
135
 
 
136
 
 
137
{ "keygen.email", N_(
 
138
 "please enter an optional but highly suggested email address"
 
139
)},
 
140
 
 
141
{ "keygen.comment", N_(
 
142
 "Please enter an optional comment"
 
143
)},
 
144
 
 
145
 
 
146
{ "keygen.userid.cmd", N_(
 
147
 ""
 
148
"N  to change the name.\n"
 
149
"C  to change the comment.\n"
 
150
"E  to change the email address.\n"
 
151
"O  to continue with key generation.\n"
 
152
"Q  to to quit the key generation."
 
153
)},
 
154
 
 
155
{ "keygen.sub.okay", N_(
 
156
 "Answer \"yes\" (or just \"y\") if it is okay to generate the sub key."
 
157
)},
 
158
 
 
159
{ "sign_uid.okay", N_(
 
160
 "Answer \"yes\" or \"no\""
 
161
)},
 
162
 
 
163
{ "sign_uid.class", N_(
 
164
"When you sign a user ID on a key, you should first verify that the key\n"
 
165
"belongs to the person named in the user ID.  It is useful for others to\n"
 
166
"know how carefully you verified this.\n\n"
 
167
"\"0\" means you make no particular claim as to how carefully you verified the\n"
 
168
"    key.\n\n"
 
169
"\"1\" means you believe the key is owned by the person who claims to own it\n"
 
170
"    but you could not, or did not verify the key at all.  This is useful for\n"
 
171
"    a \"persona\" verification, where you sign the key of a pseudonymous user.\n\n"
 
172
"\"2\" means you did casual verification of the key.  For example, this could\n"
 
173
"    mean that you verified the key fingerprint and checked the user ID on the\n"
 
174
"    key against a photo ID.\n\n"
 
175
"\"3\" means you did extensive verification of the key.  For example, this could\n"
 
176
"    mean that you verified the key fingerprint with the owner of the key in\n"
 
177
"    person, and that you checked, by means of a hard to forge document with a\n"
 
178
"    photo ID (such as a passport) that the name of the key owner matches the\n"
 
179
"    name in the user ID on the key, and finally that you verified (by exchange\n"
 
180
"    of email) that the email address on the key belongs to the key owner.\n\n"
 
181
"Note that the examples given above for levels 2 and 3 are *only* examples.\n"
 
182
"In the end, it is up to you to decide just what \"casual\" and \"extensive\"\n"
 
183
"mean to you when you sign other keys.\n\n"
 
184
"If you don't know what the right answer is, answer \"0\"."
 
185
)},
 
186
 
 
187
{ "change_passwd.empty.okay", N_(
 
188
 "Answer \"yes\" or \"no\""
 
189
)},
 
190
 
 
191
 
 
192
{ "keyedit.save.okay", N_(
 
193
 "Answer \"yes\" or \"no\""
 
194
)},
 
195
 
 
196
 
 
197
{ "keyedit.cancel.okay", N_(
 
198
 "Answer \"yes\" or \"no\""
 
199
)},
 
200
 
 
201
{ "keyedit.sign_all.okay", N_(
 
202
 "Answer \"yes\" is you want to sign ALL the user IDs"
 
203
)},
 
204
 
 
205
{ "keyedit.remove.uid.okay", N_(
 
206
 "Answer \"yes\" if you really want to delete this user ID.\n"
 
207
 "All certificates are then also lost!"
 
208
)},
 
209
 
 
210
{ "keyedit.remove.subkey.okay", N_(
 
211
 "Answer \"yes\" if it is okay to delete the subkey"
 
212
)},
 
213
 
 
214
 
 
215
{ "keyedit.delsig.valid", N_(
 
216
 "This is a valid signature on the key; you normally don't want\n"
 
217
 "to delete this signature because it may be important to establish a\n"
 
218
 "trust connection to the key or another key certified by this key."
 
219
)},
 
220
{ "keyedit.delsig.unknown", N_(
 
221
 "This signature can't be checked because you don't have the\n"
 
222
 "corresponding key.  You should postpone its deletion until you\n"
 
223
 "know which key was used because this signing key might establish\n"
 
224
 "a trust connection through another already certified key."
 
225
)},
 
226
{ "keyedit.delsig.invalid", N_(
 
227
 "The signature is not valid.  It does make sense to remove it from\n"
 
228
 "your keyring."
 
229
)},
 
230
{ "keyedit.delsig.selfsig", N_(
 
231
 "This is a signature which binds the user ID to the key. It is\n"
 
232
 "usually not a good idea to remove such a signature.  Actually\n"
 
233
 "GnuPG might not be able to use this key anymore.  So do this\n"
 
234
 "only if this self-signature is for some reason not valid and\n"
 
235
 "a second one is available."
 
236
)},
 
237
 
 
238
{ "keyedit.updpref.okay", N_(
 
239
 "Change the preferences of all user IDs (or just of the selected ones)\n"
 
240
 "to the current list of preferences.  The timestamp of all affected\n"
 
241
 "self-signatures will be advanced by one second.\n"
 
242
)},
 
243
 
 
244
 
 
245
{ "passphrase.enter", N_(
 
246
 ""
 
247
"Please enter the passhrase; this is a secret sentence \n"
 
248
)},
 
249
 
 
250
 
 
251
{ "passphrase.repeat", N_(
 
252
 "Please repeat the last passphrase, so you are sure what you typed in."
 
253
)},
 
254
 
 
255
{ "detached_signature.filename", N_(
 
256
 "Give the name of the file to which the signature applies"
 
257
)},
 
258
 
 
259
/* openfile.c (overwrite_filep) */
 
260
{ "openfile.overwrite.okay", N_(
 
261
 "Answer \"yes\" if it is okay to overwrite the file"
 
262
)},
 
263
 
 
264
/* openfile.c (ask_outfile_name) */
 
265
{ "openfile.askoutname", N_(
 
266
 "Please enter a new filename. If you just hit RETURN the default\n"
 
267
 "file (which is shown in brackets) will be used."
 
268
)},
 
269
 
 
270
/* revoke.c (ask_revocation_reason) */
 
271
{ "ask_revocation_reason.code", N_(
 
272
 "You should specify a reason for the certification.  Depending on the\n"
 
273
 "context you have the ability to choose from this list:\n"
 
274
 "  \"Key has been compromised\"\n"
 
275
 "      Use this if you have a reason to believe that unauthorized persons\n"
 
276
 "      got access to your secret key.\n"
 
277
 "  \"Key is superseded\"\n"
 
278
 "      Use this if you have replaced this key with a newer one.\n"
 
279
 "  \"Key is no longer used\"\n"
 
280
 "      Use this if you have retired this key.\n"
 
281
 "  \"User ID is no longer valid\"\n"
 
282
 "      Use this to state that the user ID should not longer be used;\n"
 
283
 "      this is normally used to mark an email address invalid.\n"
 
284
)},
 
285
 
 
286
/* revoke.c (ask_revocation_reason) */
 
287
{ "ask_revocation_reason.text", N_(
 
288
 "If you like, you can enter a text describing why you issue this\n"
 
289
 "revocation certificate.  Please keep this text concise.\n"
 
290
 "An empty line ends the text.\n"
 
291
)},
 
292
 
 
293
/* end of list */
 
294
{ NULL, NULL } };
 
295
 
 
296
 
 
297
void
 
298
display_online_help( const char *keyword )
 
299
{
 
300
 
 
301
    tty_kill_prompt();
 
302
    if( !keyword )
 
303
        tty_printf(_("No help available") );
 
304
    else {
 
305
        const char *p;
 
306
        int i;
 
307
 
 
308
        for(i=0; (p=helptexts[i].key) && strcmp( p, keyword ); i++ )
 
309
            ;
 
310
        if( !p || !*helptexts[i].help )
 
311
            tty_printf(_("No help available for `%s'"), keyword );
 
312
        else
 
313
            tty_printf("%s", _(helptexts[i].help) );
 
314
    }
 
315
    tty_printf("\n");
 
316
}