From 6be9ce8b65b9d744aed1e6d458dc34c7df6812b6 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 28 Apr 2023 07:51:47 +0200 Subject: [PATCH 1/2] doh --- docs/faq.rst | 16 +++++++--------- webmails/roundcube/config/config.inc.php | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index e2a5d218..cd5897f7 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -881,17 +881,15 @@ How can I add more languages to roundcube's spellchecker? If you are comfortable using an online spellchecker, the easiest is to configure the following via an override: -``` -$config['spellcheck_engine'] = 'googie'; -$config['spellcheck_ignore_caps'] = true; -$config['spellcheck_ignore_nums'] = true; -$config['spellcheck_dictionary'] = true; -``` +.. code-block:: php + $config['spellcheck_engine'] = 'googie'; + $config['spellcheck_ignore_caps'] = true; + $config['spellcheck_ignore_nums'] = true; + $config['spellcheck_dictionary'] = true; If not, you can download the `aspell dictionary`_ you require and place it in ``/usr/share/aspell/`` and then enable it by tweaking the following in the configuration file: -``` -$config['spellcheck_languages'] = array('en'=>'English', ...); -``` +.. code-block:: php + $config['spellcheck_languages'] = array('en'=>'English', ...); .. _`aspell dictionary`: http://ftp.gnu.org/gnu/aspell/dict/0index.html diff --git a/webmails/roundcube/config/config.inc.php b/webmails/roundcube/config/config.inc.php index cef945d6..da693e94 100644 --- a/webmails/roundcube/config/config.inc.php +++ b/webmails/roundcube/config/config.inc.php @@ -13,7 +13,7 @@ $config['log_driver'] = 'stdout'; $config['zipdownload_selection'] = true; $config['enable_spellcheck'] = true; $config['spellcheck_engine'] = 'pspell'; -$config['spellcheck_languages'] = array('en'=>'English (US)', 'en'=>'English (UK)', 'de'=>'Deutsch', 'fr'=>'French', 'ru'=>'Russian'); +$config['spellcheck_languages'] = array('en'=>'English (US)', 'uk'=>'English (UK)', 'de'=>'Deutsch', 'fr'=>'French', 'ru'=>'Russian'); $config['session_lifetime'] = {{ (((PERMANENT_SESSION_LIFETIME | default(10800)) | int)/3600) | int }}; $config['request_path'] = '{{ WEB_WEBMAIL or "none" }}'; $config['trusted_host_patterns'] = [ {{ HOSTNAMES.split(",") | map("tojson") | join(',') }}]; From cad03e7f3191a88b05a812a1fdbf51b36152d55b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 3 May 2023 14:27:25 +0200 Subject: [PATCH 2/2] grmll. --- docs/faq.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index cd5897f7..8bca7ab6 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -882,14 +882,16 @@ How can I add more languages to roundcube's spellchecker? If you are comfortable using an online spellchecker, the easiest is to configure the following via an override: .. code-block:: php - $config['spellcheck_engine'] = 'googie'; - $config['spellcheck_ignore_caps'] = true; - $config['spellcheck_ignore_nums'] = true; - $config['spellcheck_dictionary'] = true; + + $config['spellcheck_engine'] = 'googie'; + $config['spellcheck_ignore_caps'] = true; + $config['spellcheck_ignore_nums'] = true; + $config['spellcheck_dictionary'] = true; If not, you can download the `aspell dictionary`_ you require and place it in ``/usr/share/aspell/`` and then enable it by tweaking the following in the configuration file: .. code-block:: php - $config['spellcheck_languages'] = array('en'=>'English', ...); + + $config['spellcheck_languages'] = array('en'=>'English', ...); .. _`aspell dictionary`: http://ftp.gnu.org/gnu/aspell/dict/0index.html