Bug 100855 - If the document's text is selected, choices to set the "whole document" 's spellchecking language are not the same
Summary: If the document's text is selected, choices to set the "whole document" 's sp...
Status: RESOLVED DUPLICATE of bug 134732
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Statusbar
  Show dependency treegraph
Reported: 2016-07-11 18:34 UTC by Jeff Fortin Tam
Modified: 2020-07-16 19:50 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

demonstration of the problem (816.22 KB, video/webm)
2016-07-11 18:34 UTC, Jeff Fortin Tam
demonstration of the problem with a fresh document (622.35 KB, video/webm)
2016-07-17 12:08 UTC, Jeff Fortin Tam

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2016-07-11 18:34:41 UTC
Created attachment 126171 [details]
demonstration of the problem

My system's locale is fr_CA.UTF8 (French Canadian).

In Writer, if I select text before going into "Tools > Language > For entire text", there will be no menu entry for "English (U.S.A.)", only French (Canada) and French (France).

However, if I don't select anything, "English (U.S.A.)" magically appears in the available choices.

See the attached screencast with the latest LibreOffice.
Comment 1 Buovjaga 2016-07-17 09:23:10 UTC
Not reproduced with Finnish or English text.

Is this only in the .docx seen in the video or with a fresh document as well?

64-bit, KDE Plasma 5
Build ID: Arch Linux build-1
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 2 Jeff Fortin Tam 2016-07-17 12:00:24 UTC
Yes, this happens with a fresh document too. The thing is that LibreOffice tries to be "smart" and to autodetect the language of the contents the user has selected, which is precisely what I don't want.
Comment 3 Jeff Fortin Tam 2016-07-17 12:08:41 UTC
Created attachment 126248 [details]
demonstration of the problem with a fresh document

In this video with a "fresh" document you see the opposite problem: I type random gibberish and LibreOffice interprets that as "Breton" (from Brittany), changing the menu options depending on that detection. It could have been any language, and normal texts can have words from multiple languages at once, throwing off the autodetection anyway.

I think it would be simpler if it didn't change the results based on what it thinks the language is, and rather prompts the user to pick the language directly with a dedicated dialog, as suggested in bug #100856
Comment 4 Thomas Hackert 2016-07-20 16:07:07 UTC
Hello Jean-Francois, *,
I can confirm your bug with

OS: Debian Testing AMD64
LO: Version:
Build-ID: 1:5.1.4~rc2-2
CPU-Threads: 4; BS-Version: Linux 4.5; UI-Render: GL; 
Gebietsschema: de-DE (de_DE.UTF-8)
(Debian's own version)

as well as with

LO: Version:
Build-ID: a7567a46e5d2953c320b13eb88a3981c4f9bd1e0
CPU-Threads: 4; BS-Version: Linux 4.5; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE.UTF-8)
(parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel/Linux)

... :(

Steps to reproduce:
1. enter blindtext in your language ("bt"+<F3> for German)
2. enter one or two lines in English (e.g. "If there are too many errors in a text, the author should be tarred and feathered." and/or "Live is a b* and then you die."
3. Enter a new line with a different language (say "Ik ben blij met uw kennis te maken" in hopefully correct Dutch ... ;) ).
4. Press <Ctrl>+<A> to mark the whole text.
5. Go to "Tools - Languages - For entire text"

Interestingly, both versions show "German (Germany)" and Dutch (Netherlands), but not English as possible languages ... :(
@ll: if you want to test it with a German sentence, you can maybe use something like "Max Mustermann wohnt in der Musterstraße 1 in Musterstadt." or "Herzlich Willkommen in unserer Stadt." or so ... ;)

As I can confirm it, I will change the status to "New"
Comment 5 QA Administrators 2017-09-01 11:18:09 UTC Comment hidden (obsolete)
Comment 6 christos 2020-07-16 19:50:44 UTC
Similar to #tdf 134732, which has a simpler test case.

*** This bug has been marked as a duplicate of bug 134732 ***