NethServer Version: 8
Module: roundcube
I just have the spellchecker for english. How do I enable other languages?
Thanks, it’s not implemented yet. I think we could put it to advanced settings. @stephdl is it ok when I open an issue and do a PR?
As a workaround you could add it to the service.
Enter the environment:
runagent -m roundcubemail1
Edit the service file ../systemd/user/roundcubemail-app.service
and add the ROUNDCUBEMAIL_ASPELL_DICTS line as given:
--env ROUNDCUBEMAIL_DB_PASSWORD=roundcubemail \
--env ROUNDCUBEMAIL_DB_NAME=roundcubemail \
--env ROUNDCUBEMAIL_ASPELL_DICTS=de,en \
${ROUNDCUBEMAIL_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/roundcubemail-app.ctr-id -t 10
Reload the daemons:
systemctl --user daemon-reload
Restart the service:
systemctl --user restart roundcubemail-app
Exit the environment:
exit
Now the dictionary should be available:
ROUNDCUBEMAIL_ASPELL_DICTS - List of aspell dictionaries to install for spell checking (comma-separated, e.g. de,fr,pl).
Few questions
What is the size if we add all dictionnaries ?
Either we add all or with a checkbox selector inside the UI of cluster admin
Installed on demand
https://ftp.gnu.org/gnu/aspell/dict/0index.html
We have some dictionnaries
What about including the languages that NethServer supports by default and a selector in advanced options for adding other languages?
The fact that when the container starts it installs on demand the dictionnary could lead to a problem to start the container if the internet connectivity is down
At least it is my understanding
But we could test it at least with an hidden property for now in the environment file
Maybe better we could edit the systemd user file and add your line of code to add the spellcheck manually
What do you think @davidep
for some reasons it did not work
the logfile says:
roundcubemail-app[122840]: E: Unable to locate package aspell-de
Did you restart the service?
The language is installed when the container starts.
After restarting the service, the logs should show that the language is installed:
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] Reading package lists...
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] aspell-de
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] Get:1 http://deb.debian.org/debian bookworm/main amd64 aspell-de all 20161207-11 [341 kB]
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] debconf: delaying package configuration, since apt-utils is not installed
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] Preparing to unpack .../aspell-de_20161207-11_all.deb ...
2024-12-10T21:39:19+01:00 [1:roundcubemail1:roundcubemail-app] Setting up aspell-de (20161207-11) ...
yes I did.
Dec 10 20:26:41 ns8 roundcubemail-app[109704]: Reading package lists...
Dec 10 20:26:41 roundcubemail-app[109704]: Building dependency tree...
Dec 10 20:26:41 roundcubemail-app[109704]: Reading state information...
Dec 10 20:26:41 roundcubemail-app[109704]: E: Unable to locate package aspell-de
Is there a download error in the logs? Maybe the dictionary couldn’t be downloaded?
EDIT:
We worked via PM and reverted the changes because the languages couldn’t be located tough we could connect to web by
podman exec -ti roundcubemail-app curl https://orf.at
It’s a current Rocky Linux Image installation with newest core and updates. I can’t reproduce on my test machines.