Bug 143019 - Issue with the [Text Language] section of the status bar
Summary: Issue with the [Text Language] section of the status bar
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Statusbar Language-Detection
  Show dependency treegraph
 
Reported: 2021-06-23 17:21 UTC by Tracey
Modified: 2022-11-27 13:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
French English Mexican Text# <unwarranted language) (302.71 KB, image/png)
2021-08-06 16:23 UTC, Tracey
Details
French English Mexican Text# <unwarranted language> (320.28 KB, image/png)
2021-08-06 16:29 UTC, Tracey
Details
French English Mexican Text# <unwarranted language> (320.28 KB, image/png)
2021-08-06 16:30 UTC, Tracey
Details
French English Mexican Text# <unwarranted language> (186.21 KB, image/png)
2021-08-06 16:33 UTC, Tracey
Details
Lorem Ipusm Latin (314.35 KB, image/png)
2021-08-12 17:39 UTC, Tracey
Details
Lorem Ipusm Latin in SafeMode (315.26 KB, image/png)
2021-08-12 17:50 UTC, Tracey
Details
French English Mexican Text1 SafeMode Mexico only (231.90 KB, image/png)
2021-08-12 18:28 UTC, Tracey
Details
French English Mexican Text1 SafeMode Mexico and Spain (214.23 KB, image/png)
2021-08-12 18:29 UTC, Tracey
Details
French, English and Mexican Text (23.60 KB, application/vnd.oasis.opendocument.text)
2021-08-12 18:31 UTC, Tracey
Details
Australian English, Catalan, French and German appearing randomly (21.47 KB, image/png)
2022-02-11 12:36 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tracey 2021-06-23 17:21:11 UTC
Description:
LibreOffice Writer – Issue with the [Text Language] section of the status bar
Random languages (not used in the document) appear in the [Text Language] section of the status bar of a multi-lingual document.
    • <Only> the language of a <mono>-lingual document ---or--- <All> the languages used in a <multi->lingual document should appear in the [Text Language] section and no other language.
        ◦ Any need for additional languages can be added: by using the [more…] option or <select> the text and change the [format>character>font>language] from the tool bar.

Actual Results:
Random languages (not used in the document) appear in the [Text Language] section of the status bar of a multi-lingual document.
   

Expected Results:
 • <Only> the language of a <mono>-lingual document ---or--- <All> the languages used in a <multi->lingual document should appear in the [Text Language] section and no other language.
        ◦ Any need for additional languages can be added: by using the [more…] option or <select> the text and change the [format>character>font>language] from the tool bar.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.6.2 (x64)
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Dieter 2021-07-10 15:21:28 UTC
I can't see the problem in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

I have a multilanguage document. Status bar always displays language of the actual paragraph. If you select several paragraphs with different languages "Multiple Languages" is displayed in the status bar. For me this is an expected behaviour.

Tracey, could you please explain, why you expect something different? => NEEDINFO
Comment 2 Tracey 2021-08-06 16:23:43 UTC Comment hidden (obsolete)
Comment 3 Tracey 2021-08-06 16:25:25 UTC
Comment on attachment 174115 [details]
French English Mexican Text# <unwarranted language)

When I select text identifying the language for spell checking purposes, I seem to get other (unwarranted) languages randomly poping up (see the 3 attached examples: French English Mexican Text1 Frisian.png, French English Mexican Text2 Kinyarwanda.png, French English Mexican Text3 Catalan.png).

I only want to see the applicable languages in the document.
The random pop-up is very problematic with working with multi-lingual documents.

Thanks, Tracey
BTW, FWIW:
I also get English (UK) and English (USA) both appearing: I only need/want the applicable one at a time.
I also get Spanish (Spain) and Spanish (Mexico) both appearing: I only need/want the applicable one at a time.
Comment 4 Tracey 2021-08-06 16:29:00 UTC
Created attachment 174116 [details]
French English Mexican Text# <unwarranted language>

I am trying to add 3 files, but I think I discovered I can only add one at a time 8-(
Comment 5 Tracey 2021-08-06 16:30:11 UTC
Created attachment 174117 [details]
French English Mexican Text# <unwarranted language>
Comment 6 Tracey 2021-08-06 16:33:00 UTC
Created attachment 174118 [details]
French English Mexican Text# <unwarranted language>

I can't see which attachments are there (should be 1 thru 3)
Any two will show the difference:

When I select text identifying the language for spell checking purposes, I seem to get other (unwarranted) languages randomly poping up (see the 3 attached examples: French English Mexican Text1 Frisian.png, French English Mexican Text2 Kinyarwanda.png, French English Mexican Text3 Catalan.png).

I only want to see the applicable languages in the document.
The random pop-up is very problematic with working with multi-lingual documents.

Thanks, Tracey
BTW, FWIW:
I also get English (UK) and English (USA) both appearing: I only need/want the applicable one at a time.
I also get Spanish (Spain) and Spanish (Mexico) both appearing: I only need/want the applicable one at a time.
Comment 7 QA Administrators 2021-08-07 03:40:33 UTC Comment hidden (obsolete)
Comment 8 Tracey 2021-08-12 17:36:06 UTC
Unconfirmed?
I sent attachments showing <print>-screen shots of languages that appear randomly in the text language box.

I am editing documents with a mix of English and Spanish(Mexican/Mexico).
Trying to apply the applicable language for spell-checking purposes and it is intensely frustrating when other languages randomly (pop-up / appear) in the text language box shifting the "target" language to a different line/point in the list 8-| grrrr.

It is a random occurrence, but it does occur frequently.
Please advise.
Thanks, Tracey
I found the [French, English and Spanish] ODT document as a sample ODT file.
I found Lorem Ipsum online (is simply dummy text of the printing and typesetting industry).
Comment 9 Tracey 2021-08-12 17:39:14 UTC
Created attachment 174232 [details]
Lorem Ipusm Latin

Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Latin???
It is a document in English, but Latin popped-up as an option for spell checking purposes.
Why?
Please advise.
Comment 10 Dieter 2021-08-12 17:40:54 UTC
(In reply to Tracey from comment #8)
> Unconfirmed?

Yes, because until now nobody else could confirm your problem. Screenshots make it more clear, but I still can't confirm.

Please retest with Help => Restart in SafeMode
Comment 11 Tracey 2021-08-12 17:44:24 UTC
I can not see the comment I made in the Lorem Ipsum attachment.
The document is in English, but Latin also popped-up as an optional Language for spell checking.
Comment 12 Tracey 2021-08-12 17:50:20 UTC
Created attachment 174233 [details]
Lorem Ipusm Latin in SafeMode

Lorem Ipsum Latin in SafeMode.
Comment 13 Dieter 2021-08-12 18:04:04 UTC
(In reply to Tracey from comment #12)
> Created attachment 174233 [details]
> Lorem Ipusm Latin in SafeMode
> 
> Lorem Ipsum Latin in SafeMode.

I'm not sure, but I can imagine, that this is expected, because Lorem Ipsum sounds like Latin. Unfortunately I couldn't find any informations in LO Help. So I'm afraid, I can't help here.
Comment 14 Tracey 2021-08-12 18:27:04 UTC
When running a quick-check of [French, English, and Mexican/Mexico.odt] in safe mode, I did not see any wildly random languages from East/West Europe or Africa appear.

But when all the text from [Mexico] is selected only Spanish (Mexico) appears as an option in the [text language box].
When the cursor is placed within the Spanish (Mexico) text, Spanish (Spain) re-appears as an additional language option in the [text language box].

I will attach both the PNG files and the ODT text file.
Thanks, Tracey
Just FYI, It appears that I can only attach one file at a time, but a link to the webmaster does not appear to be available.
Comment 15 Tracey 2021-08-12 18:28:04 UTC
Created attachment 174236 [details]
French English Mexican Text1 SafeMode Mexico only

French English Mexican Text1 SafeMode Mexico only
Comment 16 Tracey 2021-08-12 18:29:06 UTC
Created attachment 174237 [details]
French English Mexican Text1 SafeMode Mexico and Spain

French English Mexican Text1 SafeMode Mexico and Spain
Comment 17 Tracey 2021-08-12 18:31:12 UTC
Created attachment 174238 [details]
French, English and Mexican Text

French, English and Mexican Text
Comment 18 Tracey 2021-08-12 18:40:22 UTC
Just FYI, this would not be such a royal pain in the butt, but sometimes multiple random (unrelated) languages pop up.

Thanks, Tracey
It seems that I just use LibreOffice in ways that no others do.
Comment 19 raal 2022-02-09 21:33:36 UTC
I cannot confirm with Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 571be264d9604c3d77036e26812f909655cc0bb2
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo

Tested open file from attachment and clicked in the paragraphs -  the language in the status bar correspond with text language.
Comment 20 Riccardo Robecchi 2022-02-11 12:36:40 UTC
Created attachment 178222 [details]
Australian English, Catalan, French and German appearing randomly

I can confirm the bug. On my install, the languages appear completely randomly. My selection of languages is not kept and the only two languages that appear by default are "English (USA)" (for reasons unbeknownst to me) and "English (UK)" (which is the system language). Italian, which I always use and whose corresponding language pack is installed on the system, is never included in the list; however, random languages that I have never used are included. In the screenshot you can see Catalan, English (Australia), French and German even though the document I was editing was in English and I was translating it to Italian; I had to manually add Italian for it to be present in the list.

Here are my system specs:
Version: 7.3.0.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.0~rc3-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 21 Dieter 2022-02-11 13:16:59 UTC
(In reply to Riccardo Robecchi from comment #20)
> I can confirm the bug. On my install, the languages appear completely
> randomly.
=> Status NEW
Comment 22 V Stuart Foote 2022-11-27 13:09:18 UTC
Can not confirm.

With default profile and sample document attachment 174238 [details] (fr-FR, es-MX, en-US) I do not reproduce issue.

The only languages listed from the Status bar's Language text field are the languages present in its ODF archive style.xml (document template) and content.xml

en-GB (from styles.xml)
zh-CN (from styles.xml -- CJK and does not show via the StB Language text [1])
hi-IN (from styles.xml -- CTL and does not show via the StB Language text [1])

fr-FR (from content.xml)
en-US (from content.xml)
es-MX (from content.xml)

When the Spanish language text has cursor focus, the Text language field does offer es-ES.  Likewise if I add a paragraph of Brazilian Portuguese pt-BR, when it has cursor focus, the Text language field offers pt-PR meaning.  And, if I change one of the fr-FR segment to fr-BE and the other segment to fr-CA (via the UI or edits in the content.xml) those additional languages are added to the StB Text language menu list, in addition to the no longer used fr-FR.

I expect that behavior comes from this default /administrative installation of this nightly build of master against 7.5--so all dictionaries are installed, and the cursor focus onto a text run is sufficient to offer the alternative locale dictionaries.

Finally, if I change the style.xml adjusting the en-GB default to en-US--the en-GB alternative is no longer offered for this system with os/DE in en-US.

I think this all reasonable and see no *unexplainable* "random language" appearing in Writer's Status Bar "Text language" field with default profile, nor as OP when working in Safe Mode provides.

There is no language bleed over from other documents a user has in their document history.  

So only the os/DE locale, users language settings, styles from the document template, and any applied languages present in the document (and responding dictionary/spellcheck alternates offered) control the menu list. 

I did not chase it down in source, but IMHO not a bug and => WFM

=-Testing-=

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 651658d37bcb3f493942dd5d0b9a0d65c96f105c
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

[1] believe not showing the CJK or CTL values is correct as for me on this system os/DE default locale is en-US and that is autodetected and applied. Those detected defaults UI and Locale values can be changed from Tools -> Options -> Language Settings -> Languages.

Depending on os/DE system language and locale, language setting defaults will vary per user--so additional languages can be present to what is contained in the ODF (styles.xml or content.xml).