17 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 |
*/ |
*/ |
|
|
|
20 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
21 |
#include <config.h> |
#include <config.h> |
22 |
#endif |
#endif |
23 |
|
|
24 |
#include <windows.h> |
#include <windows.h> |
|
#include <windows.h> |
|
25 |
#include <commctrl.h> |
#include <commctrl.h> |
26 |
|
|
27 |
#include "resource.h" |
#include "resource.h" |
193 |
static const char* |
static const char* |
194 |
get_expire_date (gpgme_key_t key) |
get_expire_date (gpgme_key_t key) |
195 |
{ |
{ |
|
static char tmp[64]; |
|
|
|
|
196 |
u32 u = key->subkeys->expires; |
u32 u = key->subkeys->expires; |
197 |
if (!u) |
if (!u) |
198 |
return _("never"); |
return _("never"); |
224 |
|
|
225 |
switch ( msg ) { |
switch ( msg ) { |
226 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
227 |
if (lparam == NULL) |
if (lparam == 0) |
228 |
dlg_fatal_error (dlg, "Could not get dialog param."); |
dlg_fatal_error (dlg, "Could not get dialog param."); |
229 |
#ifndef LANG_DE |
#ifndef LANG_DE |
230 |
SetWindowText (dlg, _("Key Signing")); |
SetWindowText (dlg, _("Key Signing")); |
250 |
EndDialog (dlg, FALSE); |
EndDialog (dlg, FALSE); |
251 |
} |
} |
252 |
SetDlgItemText (dlg, IDC_KEYSIGN_INFOS, keymsg); |
SetDlgItemText (dlg, IDC_KEYSIGN_INFOS, keymsg); |
|
#ifndef LANG_DE |
|
253 |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
SetDlgItemText (dlg, IDC_KEYSIGN_LOCAL, _("Sign local only (non exportable signature)")); |
254 |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
SetDlgItemText (dlg, IDC_KEYSIGN_EXPSIG, _("Signature expires on")); |
255 |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |
SetDlgItemText (dlg, IDC_KEYSIGN_NREV, _("Sign non-revocably")); |
256 |
SetDlgItemText (dlg, IDC_KEYSIGN_ASKLEVEL, _("&Ask for certification level")); |
SetDlgItemText (dlg, IDC_KEYSIGN_ASKLEVEL, _("&Ask for certification level")); |
257 |
SetDlgItemText (dlg, IDC_KEYSIGN_PWDINF, _("Passphrase")); |
SetDlgItemText (dlg, IDC_KEYSIGN_PWDINF, _("Passphrase")); |
258 |
#endif |
SetDlgItemText (dlg, IDCANCEL, _("&Cancel")); |
259 |
|
SetDlgItemText (dlg, IDC_KEYSIGN_SHOWIMG, _("&Show photo")); |
260 |
CheckDlgButton (dlg, IDC_KEYSIGN_LOCAL, BST_CHECKED); |
CheckDlgButton (dlg, IDC_KEYSIGN_LOCAL, BST_CHECKED); |
261 |
CheckDlgButton (dlg, IDC_KEYSIGN_EXPSIG, BST_UNCHECKED); |
CheckDlgButton (dlg, IDC_KEYSIGN_EXPSIG, BST_UNCHECKED); |
262 |
CheckDlgButton (dlg, IDC_KEYSIGN_ASKLEVEL, BST_UNCHECKED); |
CheckDlgButton (dlg, IDC_KEYSIGN_ASKLEVEL, BST_UNCHECKED); |