2002-04-23 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 23 Apr 2002 23:19:02 +0000 (23:19 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 23 Apr 2002 23:19:02 +0000 (23:19 +0000)
commit55b58c818d0c41e07cb338b5ec8c84ef0a9c3396
tree9e7241bc70d92a25f506beefebf3a27370d48a70
parentf40a7be656d61e7fc80488d8130ab8312587616b
2002-04-23  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry.h (struct pinentry): New variables lc_ctype
and lc_messages.
* pinentry/pinentry.c (usage): New options --lc-ctype and
--lc-messages.
(pinentry_parse_opts): Likewise.
(option_handler): Likewise.
(struct pinentry pinentry): New initializers for new members.

* curses/pinentry-curses.c (convert_utf8_string): New function.
(struct dialog): New members ok and cancel.
(dialog_create): New variables ERR, DESCRIPTION, ERROR, PROMPT,
OK, and CANCEL.  Initialize them with the localised versions of
the pinentry strings.  If in confirm mode, split up the prompt at
'|' and use the values as button texts.  Use localised strings.
(dialog_switch_pos): Use localised strings.
(dialog_run): Free dialog strings.

* acinclude.m4 (AM_ICONV): New check from gettext.
* configure.ac: Run AM_ICONV if curses pinentry is build.
Don't check for inttypes.h, don't check size of unsigned int or
unsigned long.
(LIBCAP): Move check to interface independent part.
ChangeLog
README
acinclude.m4
configure.ac
curses/Makefile.am
curses/pinentry-curses.c
pinentry/pinentry.c
pinentry/pinentry.h