mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
982f45c8c7
commit
e6463d7fe0
12 changed files with 410 additions and 79 deletions
|
@ -358,6 +358,15 @@ use option @option{-q}.
|
|||
|
||||
The command @option{--revoke-key} is not yet functional.
|
||||
|
||||
This tool needs to insert strings into the mails which can be
|
||||
configured using a plain text file. The installed default files for
|
||||
English (@file{wks-utils.txt}) and German (@file{wks-utils.de.txt})
|
||||
can be copied to the system configuration directory and changed to
|
||||
local needs. Environment variables in these texts are expanded, the
|
||||
variable ``sigdelim'' is replaced by two dashes and a blank, the
|
||||
variable ``address'' is replaced by the mail address of the key to be
|
||||
published.
|
||||
|
||||
|
||||
@mansect options
|
||||
@noindent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue