diff options
author | svncommit <devs@roundcube.net> | 2008-04-16 03:59:45 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2008-04-16 03:59:45 +0000 |
commit | 8e5defd55f02cfd5f438cfdee823221bb3e8ed45 (patch) | |
tree | 95ec0a6e6a5c4e6a945d44239995b739730cd7c1 /program/steps/mail/compose.inc | |
parent | dbbd1f495eb4a7eff44918330043ac355e50c8ac (diff) |
added language support to HTML editing (#1484862)
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r-- | program/steps/mail/compose.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 0ee55f8a9..4c4121a35 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -410,9 +410,15 @@ function rcmail_compose_body($attrib) $body = rcmail_create_draft_body($body, $isHtml); } + $tinylang = substr($_SESSION['user_lang'], 0, 2); + if (!file_exists('program/js/tiny_mce/langs/'.$tinylang.'.js')) + { + $tinylang = 'en'; + } + $OUTPUT->include_script('tiny_mce/tiny_mce.js'); $OUTPUT->include_script("editor.js"); - $OUTPUT->add_script('rcmail_editor_init("$__skin_path");'); + $OUTPUT->add_script('rcmail_editor_init("$__skin_path", "'.$tinylang.'");'); $out = $form_start ? "$form_start\n" : ''; |