Rocket.chat.electron: Spell check hell : impossible to change language or disable it

Created on 13 Feb 2020  路  18Comments  路  Source: RocketChat/Rocket.Chat.Electron

My Setup

  • Operating System: 10.15.3
  • App Version: v2.17.7
  • Installation type: dmg

  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Description


Spell check is enabled but probably set to a different language that my system. I can not find a way to disable it or to set the language to french.

Impossible to change the language to French which is in the list and no option to disable spellcheck.

When I select French and go back, "Default" is still active.
Capture d鈥檈虂cran 2020-02-14 a虁 09 50 48

I have never added any dictionary or anything before.

Tasked spell checker bug

Most helpful comment

@ThomasKientz I think I've let the Rechercher un langage ... disabled on MacOS by mistake (I'm considering to patch it right now), but as workaround you can copy a pair of files [language].aff and [language].dic to ~/Library/Application Support/Rocket.Chat/dictionaries. I'd recommend https://github.com/wooorm/dictionaries/blob/master/dictionaries/fr/index.aff and https://github.com/wooorm/dictionaries/blob/master/dictionaries/fr/index.dic, renamed as fr.aff and fr.dic.

All 18 comments

Please fill the issue template. This info is important to help you.

v2.17.7

Impossible to change the language to French which is in the list and no option to disable spellcheck.

I have never added any dictionary or anything before.

2.17.7 should ask only 2 directory for dictionaries on Windows:
c:Program FilesRocket.Chatresourcesdictionaries
c:UsersUserNameAppDataRoamingRocket.Chatdictionaries
And shouldn't use system dictionaries.
In my case both true.

Please fill the issue template. This info is important to help you.

@tassoevan done

@ThomasKientz

Spell check is enabled but probably set to a different language that my system. I can not find a way to disable it or to set the language to french.

If you right-click in any editable area (e.g. the message composer box), you'll see an Spelling languages menu (or Langages if French was detected from your operating system). Then you can set then spell checking dictionaries you want to use.

If you have any suggestions to improve this, I'd love to know.

When I select French and go back, "Default" is still active.

Looks like a bug in the Rocket.Chat server itself. Do you have access to its version?

@tassoevan

If you right-click in any editable area (e.g. the message composer box), you'll see an Spelling languages menu (or Langages if French was detected from your operating system). Then you can set then spell checking dictionaries you want to use.

Was not aware of that! French is not part of the list, how can I add it ?

Capture d鈥檈虂cran 2020-02-14 a虁 10 17 25

If you have any suggestions to improve this, I'd love to know.

Maybe an additional setting "spell check language" option ?

Thanks for the support

@ThomasKientz I think I've let the Rechercher un langage ... disabled on MacOS by mistake (I'm considering to patch it right now), but as workaround you can copy a pair of files [language].aff and [language].dic to ~/Library/Application Support/Rocket.Chat/dictionaries. I'd recommend https://github.com/wooorm/dictionaries/blob/master/dictionaries/fr/index.aff and https://github.com/wooorm/dictionaries/blob/master/dictionaries/fr/index.dic, renamed as fr.aff and fr.dic.

On my Ubuntu 16.04, I created the ~/.config/Rocket.Chat/dictionaries/ and imported the two files suggested above, and now I can choose the fr language in the Language menu, but it does nothing... The spell checking is still in English (en_US is always selected each time I open the Language menu).

i have the same problem with the windows client (v 2.17.7). if i disable the spell checking it gets enabled the next time i start the rocketchat client and is set to en_US

Same issue as the two above on the Mac client.

Is there any reason not to use the OS' spellchecker ? I use mostly computers running MacOS and they come with a system-wide spellchecker / dictionary. I believe this is how it was implemented in Discord for example, another cross-platform Electron app. Just a question here, haven't explored the technical feasibility of this on each platform.

Yeah it's realy annoying. Choosen language is being reset all the time. (Mac OS)

Best way to fix this is to add manually the French or other language dictionnary.
You can download it in LibreOffice project : https://github.com/LibreOffice/dictionaries/tree/master/fr_FR
Download : fr.aff and fr.dic and place it here : C:\Program Files\Rocket.Chat\resources\dictionaries

Best way to fix this is to add manually the French or other language dictionnary.
You can download it in LibreOffice project : https://github.com/LibreOffice/dictionaries/tree/master/fr_FR
Download : fr.aff and fr.dic and place it here : C:\Program Files\Rocket.Chat\resources\dictionaries

For languages with diacritics you need to also convert it to UTF-8.

Just FYI: the same issue happens on my 2.17.11 client on Linux. I keep turning spellcheck off (I'm working in a tri-lingual group of people so it's useless) and every time I start the client it resets to en_US.

Fixed in 3.0
image

The problem still exists on rocket chat client version 3.0.6. After turning this off by deselecting English and restarting rocket chat, English is by default selected again.

The problem still exists on rocket chat client version 3.0.6. After turning this off by deselecting English and restarting rocket chat, English is by default selected again.

Why don't you try latest 3.1.1 version?

3.0.6 was the version linked on https://rocket.chat/ but I also checked 3.1.1 later after writing this comment and the problem still exists also on 3.1.1. Also, I thnk there was nothing in the changelog that would suggest this was fixed? I installed an old version of rocket chat - 2.16.2 and this bug is not there.

Also, we use quite old server version 2.0.1 - no time to update it. I guess when we find more time, we will update the server and then I will try the latest client again.

I can confirm it seems to be impossible to start RocketChat 3.1.1 with a disabled spell checker. I have to do disable spell check manually every time I start RocketChat (every day).

Was this page helpful?
0 / 5 - 0 ratings