summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-28 12:00:12 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-28 12:00:12 +0000
commitbb21ca3c668a2b9aa2019034e07a38132decfc69 (patch)
tree2794ec212505797a2d5a746441100652a03485a9 /roundcubemail
parentc2826d09cc1e18db07d157b86f24fa5e79648c73 (diff)
- Add Russian to the spellchecker languages list (#1488135)
git-svn-id: https://svn.roundcube.net/trunk@5925 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/CHANGELOG1
-rw-r--r--roundcubemail/program/js/googiespell.js6
-rw-r--r--roundcubemail/program/steps/mail/compose.inc5
3 files changed, 7 insertions, 5 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index c96c3b565..b4c1c8ae8 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Add Russian to the spellchecker languages list (#1488135)
- Remember custom skin selection after logout (#1488355)
- Make sure About tab is always the last tab (#1488257)
- Fix issue with folder creation under INBOX. namespace (#1488349)
diff --git a/roundcubemail/program/js/googiespell.js b/roundcubemail/program/js/googiespell.js
index c074ec1ad..06aef855a 100644
--- a/roundcubemail/program/js/googiespell.js
+++ b/roundcubemail/program/js/googiespell.js
@@ -42,9 +42,9 @@ function GoogieSpell(img_dir, server_url, has_dict)
this.org_lang_to_word = {
"da": "Dansk", "de": "Deutsch", "en": "English",
- "es": "Espa&#241;ol", "fr": "Fran&#231;ais", "it": "Italiano",
- "nl": "Nederlands", "pl": "Polski", "pt": "Portugu&#234;s",
- "fi": "Suomi", "sv": "Svenska"
+ "es": "Español", "fr": "Français", "it": "Italiano",
+ "nl": "Nederlands", "pl": "Polski", "pt": "Português",
+ "ru": "Русский", "fi": "Suomi", "sv": "Svenska"
};
this.lang_to_word = this.org_lang_to_word;
this.langlist_codes = this.array_keys(this.lang_to_word);
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 47342276e..d5356e0cf 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -784,14 +784,14 @@ function rcmail_compose_body($attrib)
// include HTML editor
rcube_html_editor();
- // include GoogieSpell
+ // Set language list
if (!empty($CONFIG['enable_spellcheck'])) {
$engine = $RCMAIL->config->get('spellcheck_engine','googie');
$dictionary = (bool) $RCMAIL->config->get('spellcheck_dictionary');
$spellcheck_langs = (array) $RCMAIL->config->get('spellcheck_languages',
array('da'=>'Dansk', 'de'=>'Deutsch', 'en' => 'English', 'es'=>'Español',
'fr'=>'Français', 'it'=>'Italiano', 'nl'=>'Nederlands', 'pl'=>'Polski',
- 'pt'=>'Português', 'fi'=>'Suomi', 'sv'=>'Svenska'));
+ 'pt'=>'Português', 'ru'=>'Русский', 'fi'=>'Suomi', 'sv'=>'Svenska'));
// googie works only with two-letter codes
if ($engine == 'googie') {
@@ -818,6 +818,7 @@ function rcmail_compose_body($attrib)
$editor_lang_set[] = ($key == $lang ? '+' : '') . JQ($name).'='.JQ($key);
}
+ // include GoogieSpell
$OUTPUT->include_script('googiespell.js');
$OUTPUT->add_script(sprintf(
"var googie = new GoogieSpell('%s/images/googiespell/','%s&lang=', %s);\n".