summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-08-20 14:41:57 +0000
committerthomascube <thomas@roundcube.net>2006-08-20 14:41:57 +0000
commita5d3e661e46f18082821ad1731fece8cb3e72368 (patch)
tree8e6ab356962577a1d3bc39c0385a9e257732685b /program/steps/mail
parent9960666abef914905768c5f9fb43c3de846b80c2 (diff)
Set default spelling language (Ticket #1483938)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 3 insertions, 1 deletions
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');