summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-08-07 18:26:31 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-08-07 18:26:31 +0200
commit69aedf51cea645e1dfcbc6f629f8d1461e6e6349 (patch)
treedd3a07fe2c014c367f7b1421b25889f227a75464 /src/common
parentd8cac3bcfe4728b224497ca9411d19f1bd5f1a31 (diff)
recognize all installed dictionaries and select the required ones via spell_langs
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cfgfiles.c2
-rw-r--r--src/common/xchat.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 23151b1e..e3029df8 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -568,6 +568,7 @@ const struct prefs vars[] = {
 	{"text_replay", P_OFFINT (text_replay), TYPE_BOOL},
 	{"text_show_marker", P_OFFINT (show_marker), TYPE_BOOL},
 	{"text_show_sep", P_OFFINT (show_separator), TYPE_BOOL},
+	{"text_spell_langs", P_OFFSET (spell_langs), TYPE_STR},
 	{"text_stripcolor", P_OFFINT (stripcolor), TYPE_BOOL},
 	{"text_thin_sep", P_OFFINT (thin_separator), TYPE_BOOL},
 	{"text_tint_blue", P_OFFINT (tint_blue), TYPE_INT},
@@ -698,6 +699,7 @@ load_config (void)
 	prefs.identd = 1;
 #endif
 	strcpy (prefs.gui_license, "");
+	strcpy (prefs.spell_langs, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US");
 	strcpy (prefs.stamp_format, "[%H:%M] ");
 	strcpy (prefs.timestamp_log_format, "%b %d %H:%M:%S ");
 	strcpy (prefs.logmask, "%n-%c.log");
diff --git a/src/common/xchat.h b/src/common/xchat.h
index 718e0e91..6856d949 100644
--- a/src/common/xchat.h
+++ b/src/common/xchat.h
@@ -122,6 +122,7 @@ struct xchatprefs
 	char font_normal[FONTNAMELEN + 1];
 	char doubleclickuser[256];
 	char gui_license[64];
+	char spell_langs[64];
 	char sounddir[PATHLEN + 1];
 	char soundcmd[PATHLEN + 1];
 	char background[PATHLEN + 1];