Bug 157704 - language settings for document are not applied to existing text boxes
Summary: language settings for document are not applied to existing text boxes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox Languages
  Show dependency treegraph
 
Reported: 2023-10-11 15:17 UTC by Carottinger
Modified: 2023-12-06 17:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot from adding Spanish as language (50.06 KB, image/png)
2023-10-12 17:25 UTC, Carottinger
Details
Screenshot with [Ctrl+Shift+V] if something has been copied. (53.87 KB, image/png)
2023-10-12 20:41 UTC, m_a_riosv
Details
Company presentation in Spanish (2.86 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-10-13 14:02 UTC, Carottinger
Details
Screenshot while trying to change language on master slide(s) (145.82 KB, image/png)
2023-10-14 08:00 UTC, Carottinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carottinger 2023-10-11 15:17:39 UTC
Description:
I translated a German pptx / Impress document into Spanisch - but now all words are marked "false"
I want to change the default lang setting of the document and foowed the help via Extra-Language and set the default language for the whole documnet to "Spanisch" and pressed appl (/ OK), but still all text passages are considereds German.
I trued this with the whole document, single objects and even single words, but no change whatsoever.

Steps to Reproduce:
1. Select text (object) currently marked (and spell-checked) as german
2. Set language to Spanish (Spain): Extra->Lang->More->For the whole do->Doc Default lang->Western-> Spanish (marked with extra "ab"-icon)
3. Press Apply or OK

Actual Results:
No lang change, still onl German spell check is used

Expected Results:
Lang and spell checker should switch to Spanish (marked in lang list)


Reproducible: Always


User Profile Reset: No

Additional Info:
Spanish is loaded in LibreOffice and marked with "ab"-icon
Comment 1 m_a_riosv 2023-10-11 22:51:36 UTC
What happen if you select the text in one slide, and change the language for it to Spanish.
Comment 2 Carottinger 2023-10-12 06:32:03 UTC
Nothing. I tried this with selected text, whole objects, via the master slide or individual slides - the text remains in the initial language and also the spell checker tries to correct everything that I translated to Spanish into the most similar German words. It looks like the language selector has no function at all.
The only things that "works"  is to enable/disable the spell checker
Comment 3 m_a_riosv 2023-10-12 16:27:59 UTC
Please attach a sample file.

What happen if you clear the direct format in the text [Ctrl+M]?
Comment 4 Carottinger 2023-10-12 17:24:18 UTC
When I clear the direct format (via UI or Ctrl+Shift+M) either on text or object the lang still only remains German (incl. spell checker) also after re-selecting Spanish again.
Comment 5 Carottinger 2023-10-12 17:25:48 UTC
Created attachment 190171 [details]
Screenshot from adding Spanish as language
Comment 6 m_a_riosv 2023-10-12 20:11:40 UTC
Sorry, but the screenshot doesn't serve in this case.
Attach an impress sample file with the issue.

And I never install an extension for the Spanish dictionary.
In fact, if you install LibreOffice in Spanish, the dictionary it's automatically enabled.
Comment 7 m_a_riosv 2023-10-12 20:41:54 UTC
Created attachment 190176 [details]
Screenshot with [Ctrl+Shift+V] if something has been copied.

Attached the screenshot with [Ctrl+Shift+V] if something has been copied, inside the app.

Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 8 Carottinger 2023-10-13 14:02:37 UTC
Created attachment 190192 [details]
Company presentation in Spanish
Comment 9 Carottinger 2023-10-13 14:04:03 UTC
I managed to set Spanish for single (exactl 1) word or line, but the language detection cannot be changed - sometimes it guesses German, Interlingua (?), Esperaanto or Katalan ... nver a whole object or the whole text.
Comment 10 m_a_riosv 2023-10-13 21:34:33 UTC
Menu/View/Master slide.
Menu/Edit/Select All
Select the language on the status bar.
Menu/View/Normal
It seems to apply to all slides.
Comment 11 Carottinger 2023-10-14 07:59:21 UTC
May be that works for you, but neither the change on the master slide nor the changes on the slides themselves has any effect for the language - still all in German. It simply refuses to change the language (see attached screenshot)
Comment 12 Carottinger 2023-10-14 08:00:04 UTC
Created attachment 190203 [details]
Screenshot while trying to change language on master slide(s)
Comment 13 Carottinger 2023-10-14 08:00:51 UTC
Do I have to re-install LibreOffice - obviously the lang fuctionality is seriously broken in my installation.
Comment 14 m_a_riosv 2023-10-14 10:11:43 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 15 Carottinger 2023-10-14 13:19:19 UTC
I re-installed LibreOffice (7372 on elementaryOS 7.1/ubuntu 22.04 LTS) and rebooted - no change
Comment 16 Carottinger 2023-10-14 13:46:22 UTC
I also started in safe mode and reset all configs and my user profile - no change:
- you cannot change language settings on objects, 
- single words/line are changable to what seems to be detected by first word (no change possible if guessing is wrong)
Comment 17 Stéphane Guillou (stragu) 2023-10-26 16:29:03 UTC
In Writer, changing the document language in the Options dialog will change the language of all paragraphs, but it will not change it inside text boxes. I think we are seeing the same issue here: because Impress uses text boxes for all text, then it looks like changing the document language changes nothing.

Plus, we have the status bar not updating accordingly, which is bug 34141.

However, new text boxes will use the new document language as expected.
But I agree that this issue makes it very cumbersome to change a whole slideshow at once: it would have to be done in the Character dialog for each text box.

Design/UX team: I couldn't find a duplicate report about that. It would make sense for the document language to be applied to all existing text boxes, right?

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded