summary refs log tree commit diff stats
path: root/src/common/cfgfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/cfgfiles.c')
-rw-r--r--src/common/cfgfiles.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 09b91423..c02395c9 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -452,7 +452,7 @@ const struct prefs vars[] = {
 	{"gui_join_dialog", P_OFFINT (gui_join_dialog), TYPE_BOOL},
 	{"gui_lagometer", P_OFFINT (lagometer), TYPE_INT},
 #ifdef WIN32
-	{"gui_lang", P_OFFSET (gui_lang), TYPE_STR},
+	{"gui_lang", P_OFFINT (gui_lang), TYPE_INT},
 #endif
 	{"gui_mode_buttons", P_OFFINT (chanmodebuttons), TYPE_BOOL},
 #ifdef WIN32
@@ -677,7 +677,10 @@ load_config (void)
 	prefs.indent_nicks = 1;
 	prefs.thin_separator = 1;
 	prefs._tabs_position = 2; /* 2 = left */
-#ifndef WIN32
+#ifdef WIN32
+	prefs.identd = 1;
+	prefs.gui_lang = 12;
+#else
 	prefs.fastdccsend = 1;
 #endif
 	prefs.wordwrap = 1;
@@ -747,10 +750,6 @@ load_config (void)
 	prefs.url_grabber_limit = 100; /* 0 means unlimited */
 	prefs.text_search_follow = 1;
 	prefs.timestamp = 1;
-#ifdef WIN32
-	prefs.identd = 1;
-	strcpy (prefs.gui_lang, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US");
-#endif
 	strcpy (prefs.spell_langs, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US");
 	strcpy (prefs.stamp_format, "[%H:%M:%S] ");
 	strcpy (prefs.timestamp_log_format, "%b %d %H:%M:%S ");