From a5d3e661e46f18082821ad1731fece8cb3e72368 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 20 Aug 2006 14:41:57 +0000 Subject: Set default spelling language (Ticket #1483938) --- program/steps/mail/compose.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index f486175d8..2f650d6e4 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -395,7 +395,8 @@ function rcmail_compose_body($attrib) "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 @@ function rcmail_compose_body($attrib) 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'); -- cgit v1.2.3