diff options
author | Werner Koch <[email protected]> | 2025-06-02 10:42:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-06-02 10:42:59 +0000 |
commit | e6463d7fe097b39c9e8952ef9f5758fa0ee0e4bd (patch) | |
tree | 38222b8338276d8de0b92130dd43b003ec46754c /common/t-helpfile.c | |
parent | gpg-mail-tube: Support templates. (diff) | |
download | gnupg-e6463d7fe097b39c9e8952ef9f5758fa0ee0e4bd.tar.gz gnupg-e6463d7fe097b39c9e8952ef9f5758fa0ee0e4bd.zip |
wks: Use templates for the server responses.
* common/helpfile.c (gnupg_get_template): Add arg locale_override and
adjust all callers.
* tools/wks-receive.c (struct receive_ctx_s): Add field ct_language.
(get_language): New.
(new_part): Call it.
(wks_receive): Pass language to the result callback.
* tools/gpg-wks-client.c (short_locale): New.
(main): Get and store the current locale.
(command_create): Fix a glitch for the Posteo hack. Insert the locale
into the confirmation request.
(send_confirmation_response): Ditto.
* tools/gpg-wks-server.c (struct server_ctx_s): Add field language.
(only_ascii): New.
(struct my_subst_vars_s, my_subst_vars_cb, my_subst_vars): New.
(send_confirmation_request): Use a template.
(send_congratulation_message): Ditto.
(check_and_publish): Pss ctx to send_congratulation_message.
(command_receive_cb): Add arg language.
* doc/wks-utils.txt, doc/wks-utils.de.txt: New.
* doc/Makefile.am (helpfiles): Add them.
--
GnuPG-bug-id: 7381
Note that the subject is not yet translated or templated due to a
missing header encoding function.
Diffstat (limited to 'common/t-helpfile.c')
-rw-r--r-- | common/t-helpfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/t-helpfile.c b/common/t-helpfile.c index adb69ba2d..d1e7f547d 100644 --- a/common/t-helpfile.c +++ b/common/t-helpfile.c @@ -66,7 +66,7 @@ main (int argc, char **argv) } - result = gnupg_get_template (argv[0], argv[1], flags); + result = gnupg_get_template (argv[0], argv[1], flags, NULL); if (!result) { fprintf (stderr, |