1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-26 20:31:06 +01:00

agent: Add strings for use by future Pinentry versions.

* agent/call-pinentry.c (start_pinentry): Add more strings.
--

We do this so that translations of these strings will be available at
the time a pinentry implements features which require these strings.

Signed-off-by: Werner Koch <wk@gnupg.org>

This is a backport from master
commit 02d5e1205489aa5027a87a64552eaf15984dc22d
without the mode flag in the table.
This commit is contained in:
Werner Koch 2015-05-11 10:25:09 +02:00
parent 78e0a30fb1
commit 3d3a58b796
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -431,7 +431,7 @@ start_pinentry (ctrl_t ctrl)
{ {
/* Provide a few default strings for use by the pinentries. This /* Provide a few default strings for use by the pinentries. This
may help a pinentry to avoid implementing localization code. */ may help a pinentry to avoid implementing localization code. */
static struct { const char *key, *value; } tbl[] = { static struct { const char *key, *value; int mode; } tbl[] = {
/* TRANSLATORS: These are labels for buttons etc used in /* TRANSLATORS: These are labels for buttons etc used in
Pinentries. An underscore indicates that the next letter Pinentries. An underscore indicates that the next letter
should be used as an accelerator. Double the underscore for should be used as an accelerator. Double the underscore for
@ -439,8 +439,14 @@ start_pinentry (ctrl_t ctrl)
the second vertical bar. */ the second vertical bar. */
{ "ok", N_("|pinentry-label|_OK") }, { "ok", N_("|pinentry-label|_OK") },
{ "cancel", N_("|pinentry-label|_Cancel") }, { "cancel", N_("|pinentry-label|_Cancel") },
{ "yes", N_("|pinentry-label|_Yes") },
{ "no", N_("|pinentry-label|_No") },
{ "prompt", N_("|pinentry-label|PIN:") }, { "prompt", N_("|pinentry-label|PIN:") },
{ "pwmngr", N_("|pinentry-label|_Save in password manager") }, { "pwmngr", N_("|pinentry-label|_Save in password manager") },
{ "cf-visi",N_("Do you really want to make your "
"passphrase visible on the screen?") },
{ "tt-visi",N_("|pinentry-tt|Make passphrase visible") },
{ "tt-hide",N_("|pinentry-tt|Hide passphrase") },
{ NULL, NULL} { NULL, NULL}
}; };
char *optstr; char *optstr;