From a5d3e661e46f18082821ad1731fece8cb3e72368 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 20 Aug 2006 10:41:57 -0400
Subject: [PATCH] Set default spelling language (Ticket #1483938)

---
 CHANGELOG                      |   12 ++++++++++++
 program/steps/mail/compose.inc |    4 +++-
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index a9973fb..d41b9b6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,18 @@
 CHANGELOG RoundCube Webmail
 ---------------------------
 
+2006/08/20 (thomasb)
+----------
+- Set default spelling language (Ticket #1483938)
+- Added support for Nox Spell Server
+
+
+2006/08/18 (thomasb)
+----------
+- Re-built message parsing (Bug #1327068)
+- Fixed some XSS and SQL injection issues
+
+
 2006/08/10 (thomasb)
 ----------
 - Fixed charset problems with folder renaming
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index f486175..2f650d6 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -395,7 +395,8 @@
                                 "googie.lang_rsm_edt = \"%s\";\n".
                                 "googie.lang_close = \"%s\";\n".
                                 "googie.lang_revert = \"%s\";\n".
-                                "googie.lang_no_error_found = \"%s\";\n%s".                                
+                                "googie.lang_no_error_found = \"%s\";\n%s".
+                                "googie.setCurrentLanguage('%s');\n".
                                 "googie.decorateTextarea('%s');\n".
                                 "%s.set_env('spellcheck', googie);",
                                 $GLOBALS['COMM_PATH'],
@@ -405,6 +406,7 @@
                                 rep_specialchars_output(rcube_label('revertto')),
                                 rep_specialchars_output(rcube_label('nospellerrors')),
                                 $lang_set,
+                                substr($_SESSION['user_lang'], 0, 2),
                                 $attrib['id'],
                                 $JS_OBJECT_NAME), 'foot');
 

--
Gitblit v1.9.1