Bug 109090 - Lang pref English (USA) shows as French (France) in spell checker dialogue (macOS only) (STR in comment 17)
Summary: Lang pref English (USA) shows as French (France) in spell checker dialogue (m...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All macOS (All)
: high major
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/how-to-...
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: macOS-UI-polish Spell-Checking-Dialog
  Show dependency treegraph
 
Reported: 2017-07-13 01:18 UTC by Bruce Dickson
Modified: 2024-06-25 15:12 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (445.16 KB, image/png)
2017-07-13 01:23 UTC, Bruce Dickson
Details
Screenshot of general language configuration and spellcheck dialogs (231.75 KB, image/png)
2023-04-06 13:43 UTC, Alex Thurgood
Details
Screenshot of dropdown available languages for spellcheck (119.81 KB, image/png)
2023-04-06 13:44 UTC, Alex Thurgood
Details
Screenshot of selected text character language setting (55.54 KB, image/png)
2023-04-06 13:49 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Dickson 2017-07-13 01:18:33 UTC
Description:
Thanks for the good software.  I'm glad I donate.  
Happens after reboot of program.
Happens after uninstall of older or newer versions of LO.
Happens after safe mode restart

HARDWARE - Imac 2011 OSX 10.10.2 Yosemite.  Has happened on my 2009 iMac and OSX 10.6.8 as I recall but less so. 

Lang pref set to English (USA)
In an existing doc, Tools > Spell check dialogue pauses and populates the box with English (USA).  After first use, lang dictionary defaults to French.  If I continue clicking to spell check, then it cycles to German, Dutch or Italian and then back to English.  No definite pattern here of how many goofs before gets back to English.  Only one English then cycles thru these other dictionaries.  

In the past this only happened occasionally.  Today, happening exclusively, every time, for the first time

Forums suggest no way exists to delete unwanted foreign dictionaries.  

Actual Results:  
spell checker disabled making LO mostly useless for writing.

Expected Results:
Restarting in safe mode and deleting user profile created no change in the problem. 


Reproducible: Always

User Profile Reset: yes. Tried today. The safe mode screen does NOT display RESTART until several choices in.  Not good. 

Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Comment 1 Bruce Dickson 2017-07-13 01:23:46 UTC
Created attachment 134607 [details]
screenshot

screen shot showing the french dictionary and LO version details
Comment 2 Alex Thurgood 2017-07-13 09:27:32 UTC
@Bruce: hmm, I have my LibreOffice lang preferences set to French, and my my macOS keyboard language set to French too.

If I open a new Writer document, type some text in English, and then try to assign the en-US dictionary via the Spellchecker tool, the dropdown menu repeatedly gets set back to French. This would be both a bug and a regression, although possibly not the same thing as you are seeing ?
Comment 3 Alex Thurgood 2017-07-13 09:35:13 UTC
So I reset the lang prefs within LO to en-US, for everything (UI, spellcheck and default language for documents), and restarted LO.

When I went to check spelling of my test document in English, the spellchecker dialog displayed French as the language. I can then set this dropdown to en-US, but the spellchecker still considers the text to be in French and suggests French language corrections. If I close the dialog after setting to en-US and then re-open the spellchecker, the default spellchecking language is set back to French.

CONFIRMING

==>> regression
Comment 4 Alex Thurgood 2017-07-13 09:37:46 UTC
Tested against 

Version: 5.3.4.2
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
CPU Threads: 4; OS Version: Mac OS X 10.12.5; UI Render: default; Layout Engine: new; 
Locale: en-GB (fr_FR.UTF-8); Calc: group
Comment 5 How can I remove my account? 2018-05-17 13:38:31 UTC
Can anybody reproduce this problem with 6.0.3, and give *exact* reproduction instructions please, and attach the document being handled.
Comment 6 Julien Nabet 2019-02-09 16:44:33 UTC Comment hidden (off-topic)
Comment 7 How can I remove my account? 2019-02-09 20:12:20 UTC
Julienl this bug is indicated as being macOS-specific, so testing on Debian seems pointless?
Comment 8 Julien Nabet 2019-02-09 20:14:46 UTC
(In reply to Tor Lillqvist from comment #7)
> Julienl this bug is indicated as being macOS-specific, so testing on Debian
> seems pointless?

Indeed, it has been confirmed only on Mac. Let's put it back to NEW.
Comment 9 Buovjaga 2020-06-06 13:31:51 UTC
(In reply to Tor Lillqvist from comment #5)
> Can anybody reproduce this problem with 6.0.3, and give *exact* reproduction
> instructions please, and attach the document being handled.

Bruce: can you help with this? Please test with 6.4.x
Comment 10 QA Administrators 2023-01-18 03:25:01 UTC Comment hidden (obsolete)
Comment 11 Stéphane Guillou (stragu) 2023-04-06 07:44:37 UTC
Tested on macOS 13.2.1 with LO 7.4.5.1 and 7.6 alpha0+ could no reproduce.

All language settings in LO are in en-US, but my keyboard is German. I have dictionaries for both.
Spell check sticks to the document language, en-US.

Alex and Bruce, there is no repro since 5.3. Can you please check that this can be closed as "works for me"?
Comment 12 Alex Thurgood 2023-04-06 13:42:59 UTC
I still see an issue with :

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Mac OS X 13.3; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

See the screenshot for the LO language configuration, and next to it, the spellchecker dialog.

The macOS language and keyboard are set to FR.

The text (which can't be seen beneath the dialog windows, is all in French.
The language indicator at the bottom of the page is saying that the default paragraph language is French.

And yet, the spellchecker is reporting that no "Aucune" dictionary is installed and active, and that the only choice available in the dropdown menu one of many forms of Arabic.

The test text reads as follows:

"Ceci est un test de vérification de langue pour du texte en français, puis je ferai le même test avec un texte en anglais."

For me, the issue is still there.
Comment 13 Alex Thurgood 2023-04-06 13:43:42 UTC
Created attachment 186514 [details]
Screenshot of general language configuration and spellcheck dialogs
Comment 14 Alex Thurgood 2023-04-06 13:44:16 UTC
Created attachment 186515 [details]
Screenshot of dropdown available languages for spellcheck
Comment 15 Alex Thurgood 2023-04-06 13:49:33 UTC
Created attachment 186516 [details]
Screenshot of selected text character language setting

The test text I typed in shows up as French in the Character menu when I select it with the mouse, but the spellchecker still fails to recognize the text as French and fails to load the French dictionary.
Comment 16 Stéphane Guillou (stragu) 2023-04-06 13:57:00 UTC
Alex, can you please test again a 7.5.3 pre-release as there were a few spellcheck fixes since 7.5.1.
Much appreciated!
Comment 17 bunkem 2023-08-11 17:26:18 UTC
I'm having some difficulties determining how to reproduce this.

Please confirm this replicates the issue.

1.Set language preference to "French (France)"
2.Create a new Writer document. 
3.Make sure the language of the document is "French (France)"
4.Add French language text to the document.
5.Save document with a name.odt
6.Run Tools:Spelling.
7.Spelling doesn't work since it says "None" or "Aucun" as the dictionary.
8.Set the dictionary to "French (France)". Save.
9.Run Tools:Spelling. Spelling shows "None" or "Aucun" instead of "French (France)" 

If this is correct, then I can confirm it is present in 
Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 8; OS: Mac OS X 12.6.8; UI render: default; VCL: osx
Locale: fr-FR (en_CA.UTF-8); UI: en-US
Calc: threaded
Comment 18 bunkem 2023-08-12 18:48:12 UTC
Tested with LO3.3.0 following the steps I laid out in the previous post.
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
French Dictionary Modern 3.8 is installed. 

The French (France) language does not stick.  The French (France) language also doesn't work in the spellchecking.  The French (France) language doesn't work in the autocorrect.

This is the earliest build that I can test.
Comment 19 Alex Thurgood 2024-05-24 12:58:56 UTC
(In reply to bunkem from comment #17)


> Please confirm this replicates the issue.
> 
> 1.Set language preference to "French (France)"
> 2.Create a new Writer document. 
> 3.Make sure the language of the document is "French (France)"
> 4.Add French language text to the document.
> 5.Save document with a name.odt
> 6.Run Tools:Spelling.
> 7.Spelling doesn't work since it says "None" or "Aucun" as the dictionary.
> 8.Set the dictionary to "French (France)". Save.
> 9.Run Tools:Spelling. Spelling shows "None" or "Aucun" instead of "French
> (France)" 
> 
> If this is correct, then I can confirm it is present in 
> Version: 7.5.5.2 (X86_64) / LibreOffice Community
> Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
> CPU threads: 8; OS: Mac OS X 12.6.8; UI render: default; VCL: osx
> Locale: fr-FR (en_CA.UTF-8); UI: en-US
> Calc: threaded

Thank you @Bunkem, this is what I continue to see and experience with:

Version: 7.6.7.2 (AARCH64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 8; OS: Mac OS X 14.5; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

The massively annoying thing about it is that the LibreOffice spellchecker UI insists that there is no dictionary installed for any part of the document.

I've tried various ways of setting the language of the document:

- selecting all (Cmd-A) and then selecting French as the language in the bottom statusbar;

- selecting all (Cmd-A) and then choosing any of the options available in the Tools > Language submenu - none of them make any difference.

I am using LibreOffice on macOS with French as the OS system language, with a French keyboard, and with the French lang-pack of LibreOffice installed.

The spellchecking UI in the dictionary dropdown menu shows a list of installed dictionaries with the Default set to "None", and the remainder of the list limited to various forms of Arabic and Irish.


Why doesn't the installed French dictionary show up and why isn't it functional?

The absolute irony is that I now have to switch to Word to spellcheck the document.
Comment 20 Alex Thurgood 2024-05-24 13:53:45 UTC
FWIW, the problem is identical in Collabora Office, and LibreOffice from the AppStore, with the exception that the dropdown dictionary menu shows French as a selectable entry (which the TDF download plus French lang-pack version does not). However, selecting this entry, even if it exists in the UI, makes no difference, the menu reverts back to "None", and the spellcheck in French does not take place.
Comment 21 bunkem 2024-05-25 19:51:01 UTC
Thanks Alex.

So it existed in LO3.3, we can't bibisect this as it is in the earliest version of LO.

@Ilmari, what do we do from here.
Comment 22 Alex Thurgood 2024-05-25 21:05:29 UTC
Pretty certain spell check in French worked at some stage though.
Comment 23 Buovjaga 2024-05-26 06:40:36 UTC
(In reply to bunkem from comment #21)
> Thanks Alex.
> 
> So it existed in LO3.3, we can't bibisect this as it is in the earliest
> version of LO.
> 
> @Ilmari, what do we do from here.

It's surprising that in comment 18 you were able to run 3.3.0 on a recent macOS (?) as backwards compatibility issues should prevent it. As Alex says and also in line with the original report, French spell checking must have worked OK before.

I don't know what French Dictionary Modern 3.8 is or where to acquire it and if it's contemporary to 3.3.0 or a more recent version and if this would have an effect on the testing.
Comment 24 bunkem 2024-05-28 00:44:57 UTC
@Buovjaga, I was using a VM (I believe with Snow Leopard but it's been a while since I tested it).

I am thinking that at the time of LO 3.3 the Modern 3.8 dictionary was default.

If I'm not mistaken (@Alex Thurgood please confirm), the present French (France) dictionary is used now to replicate.
Comment 25 Alex Thurgood 2024-05-28 09:17:30 UTC
(In reply to bunkem from comment #24)


> 
> If I'm not mistaken (@Alex Thurgood please confirm), the present French
> (France) dictionary is used now to replicate.


With Version: 24.2.3.2 (AARCH64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: macOS 14.5; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

The French dictionary listed in the extension manager GUI comes from Dicollecte (www.dicollecte.org), and has the following indications:

Dictionary: 5.7
Synonyms: 2.3
Cesura: 3.0


With Version: 7.6.7.2 (AARCH64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 8; OS: Mac OS X 14.5; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

The French dictionary listed in the extension manager GUI comes from Dicollecte and has the following indications:

Dictionary: "Classical" 7.0
Synonyms: 2.3
Cesura: 3.0
Comment 26 Alex Thurgood 2024-05-28 09:30:04 UTC
(In reply to Alex Thurgood from comment #25)
> (In reply to bunkem from comment #24)
> 
> 
> > 
> > If I'm not mistaken (@Alex Thurgood please confirm), the present French
> > (France) dictionary is used now to replicate.
> 
> 


And as a comparison, for Collabora Office, Version: 23.05.10.1 (AARCH64)
Build ID: 17467f5956a13c5fcee27507ea60d15cdda473ed
CPU threads: 8; OS: Mac OS X 14.5; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

the installed French dictionary visible in the extensions manager GUI shows:

Dictionary: Classical, 7.0
Synonyms: 2.3
Cesura: 3.0
Comment 27 bunkem 2024-05-28 14:15:20 UTC
Thanks @Alex_Thurgood

Have you ever tried the LanguageTool extension?
https://extensions.libreoffice.org/en/extensions/show/languagetool

I've been using this tool as it does a better job of spelling and grammar checking.  Perhaps it might work differently and solve this issue?
Comment 28 Alex Thurgood 2024-05-28 19:16:42 UTC
(In reply to bunkem from comment #27)
> Thanks @Alex_Thurgood
> 
> Have you ever tried the LanguageTool extension?
> https://extensions.libreoffice.org/en/extensions/show/languagetool
> 
> I've been using this tool as it does a better job of spelling and grammar
> checking.  Perhaps it might work differently and solve this issue?

Thanks for the suggestion. I haven't, and I shouldn't have to. Spellchecking worked in at least one version on macOS before and now it doesn't. That's the issue that needs addressing. 

Doesn't LanguageTool require an internet connection? What happens if you have no Internet?

Seems also that LanguageTool is broken on macOS too:

bug 153360

bug 151358
Comment 29 bunkem 2024-05-30 00:26:03 UTC
I agree that you shouldn't need an extension.  I just thought it might be easier than using a second program for spellchecking.

I've been using LanguageTool daily because it is more powerful.  If you install the extension, it doesn't need an internet connection.  I'll have a look at the two bug reports but I haven't had a problem on my MBP running MacOS Monterey.
Comment 30 bunkem 2024-05-30 00:30:02 UTC
(In reply to bunkem from comment #29)
> I agree that you shouldn't need an extension.  I just thought it might be
> easier than using a second program for spellchecking.
> 
> I've been using LanguageTool daily because it is more powerful.  If you
> install the extension, it doesn't need an internet connection.  I'll have a
> look at the two bug reports but I haven't had a problem on my MBP running
> MacOS Monterey.

Well, I am on an Intel Mac still.  LanguageTool appears to be a Java based extension so in theory it should run but perhaps it is using the built in Java on the Intel Mac.  Not sure if ARM based Macs have Java installed as a default.
Comment 31 Dennis Roczek 2024-06-25 13:37:47 UTC
(In reply to bunkem from comment #30)
> Well, I am on an Intel Mac still.  LanguageTool appears to be a Java based
> extension so in theory it should run but perhaps it is using the built in
> Java on the Intel Mac.
No, Apple's old Java is to old and is not included any longer in newer macos systems.

> Not sure if ARM based Macs have Java installed as a
> default.

Same as on Intel macs: go and grab a Java implementation, install it and it will work.


Through this ticket is not about LanguageTool but on the built-in dictionary.
Comment 32 Dennis Roczek 2024-06-25 15:03:57 UTC
Through I'm not able to reproduce the bug with a German system... even using the French text example.

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: macOS 11.7.10; UI render: Skia/Raster; VCL: osx
Locale: en-US (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 33 Dennis Roczek 2024-06-25 15:06:52 UTC
Removing bibisectRequest as comment 21 indicates that is too old for a bibisect.
Comment 34 Buovjaga 2024-06-25 15:12:49 UTC
(In reply to Dennis Roczek from comment #33)
> Removing bibisectRequest as comment 21 indicates that is too old for a
> bibisect.

That's not in line with the original description and Alex's memories, so adding the request back.