aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-06-01 19:44:05 +0000
committerWerner Koch <[email protected]>2008-06-01 19:44:05 +0000
commit49b2db7636bc43fb173b6c447cf6fea433938797 (patch)
tree769a4cd6b723ba1dffcd8f4f3319f918608d6516 /g10/keygen.c
parentThe Spanish translation is now up to to date. Modulo some changes I did (diff)
downloadgnupg-49b2db7636bc43fb173b6c447cf6fea433938797.tar.gz
gnupg-49b2db7636bc43fb173b6c447cf6fea433938797.zip
Changes the header presented before requesting the user ID.
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 48a7fa271..a89970003 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1941,12 +1941,31 @@ ask_user_id( int mode )
char *answer;
char *aname, *acomment, *amail, *uid;
- if( !mode )
- tty_printf( _("\n"
+ if ( !mode )
+ {
+ const char *s1 =
+ N_("\n"
+ "GnuPG needs to construct a user ID to identify your key.\n"
+ "\n");
+ const char *s2 = _(s1);
+
+ if (!strcmp (s1, s2))
+ {
+ /* There is no translation for the string thus we to use
+ the old info text. gettext has no way to tell whether
+ a translation is actually available, thus we need to
+ to compare again. */
+ const char *s3 = N_("\n"
"You need a user ID to identify your key; "
"the software constructs the user ID\n"
"from the Real Name, Comment and Email Address in this form:\n"
-" \"Heinrich Heine (Der Dichter) <[email protected]>\"\n\n") );
+" \"Heinrich Heine (Der Dichter) <[email protected]>\"\n\n");
+ const char *s4 = _(s3);
+ if (strcmp (s3, s4))
+ s2 = s3; /* A translation exists - use it. */
+ }
+ tty_printf ("%s", s2) ;
+ }
uid = aname = acomment = amail = NULL;
for(;;) {
char *p;