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 <shlobj.h> |
#include <shlobj.h> |
26 |
|
|
27 |
#include "wptNLS.h" |
#include "wptNLS.h" |
127 |
char path[256], * p; |
char path[256], * p; |
128 |
HWND cb; |
HWND cb; |
129 |
|
|
130 |
switch ( msg ) { |
switch (msg) { |
131 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
|
#ifndef LANG_DE |
|
132 |
SetWindowText (dlg, _("WinPT Preferences")); |
SetWindowText (dlg, _("WinPT Preferences")); |
133 |
SetDlgItemText (dlg, IDC_PREFS_SECMODE, _("Do not use any &temporary files")); |
SetDlgItemText (dlg, IDC_PREFS_SECMODE, _("Do not use any &temporary files")); |
134 |
SetDlgItemText (dlg, IDC_PREFS_VIEWER, _("Use clipboard &viewer to display the plaintext")); |
SetDlgItemText (dlg, IDC_PREFS_VIEWER, _("Use clipboard &viewer to display the plaintext")); |
138 |
SetDlgItemText (dlg, IDC_PREFS_AUTOBACKUP, _("&Automatic keyring backup when WinPT closes")); |
SetDlgItemText (dlg, IDC_PREFS_AUTOBACKUP, _("&Automatic keyring backup when WinPT closes")); |
139 |
SetDlgItemText (dlg, IDC_PREFS_BAKHOME, _("Backup to GPG &home folder")); |
SetDlgItemText (dlg, IDC_PREFS_BAKHOME, _("Backup to GPG &home folder")); |
140 |
SetDlgItemText (dlg, IDC_PREFS_BAKUSER, _("Backup to:")); |
SetDlgItemText (dlg, IDC_PREFS_BAKUSER, _("Backup to:")); |
141 |
#endif |
SetDlgItemText (dlg, IDC_PREFS_KEYLISTINF, _("Select &key list mode")); |
142 |
|
SetDlgItemText (dlg, IDC_PREFS_WIPEINF, _("Select &wipe mode")); |
143 |
|
SetDlgItemText (dlg, IDC_PREFS_KSINF, _("Keyserver &config")); |
144 |
|
SetDlgItemText (dlg, IDC_PREFS_CACHEINF, _("Cache &passphrases for 'n' seconds")); |
145 |
|
SetDlgItemText (dlg, IDC_PREFS_CACHEHINT, _("(CTRL+ALT+F to clear the cache)")); |
146 |
|
SetDlgItemText (dlg, IDC_PREFS_ALLOPTINF, _("General options")); |
147 |
|
SetDlgItemText (dlg, IDC_PREFS_CLIPINF, _("Clipboard hotkeys")); |
148 |
|
SetDlgItemText (dlg, IDC_PREFS_CURRINF, _("Current window hotkeys")); |
149 |
|
|
150 |
SetDlgItemInt( dlg, IDC_PREFS_CACHETIME, reg_prefs.cache_time, TRUE ); |
SetDlgItemInt( dlg, IDC_PREFS_CACHETIME, reg_prefs.cache_time, TRUE ); |
151 |
SetDlgItemInt( dlg, IDC_PREFS_WORDWRAP, reg_prefs.word_wrap, TRUE ); |
SetDlgItemInt( dlg, IDC_PREFS_WORDWRAP, reg_prefs.word_wrap, TRUE ); |
152 |
if (reg_prefs.backup.path) |
if (reg_prefs.backup.path) |
241 |
|
|
242 |
case IDC_PREFS_KSELFILE: { |
case IDC_PREFS_KSELFILE: { |
243 |
const char * name; |
const char * name; |
244 |
name = get_filename_dlg (dlg, FILE_OPEN, _("Please select a keyserver.conf file"), |
name = get_fileopen_dlg (dlg, _("Please select a keyserver.conf file"), |
245 |
NULL, NULL); |
NULL, NULL); |
246 |
if (name != NULL) |
if (name != NULL) |
247 |
SetDlgItemText (dlg, IDC_PREFS_KSERVER, name); |
SetDlgItemText (dlg, IDC_PREFS_KSERVER, name); |