Bug 164313 - Autotext insertion changes language to system default language
Summary: Autotext insertion changes language to system default language
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoText
  Show dependency treegraph
 
Reported: 2024-12-13 09:17 UTC by ThomasU
Modified: 2025-01-02 21:32 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Screencast (2.47 MB, image/gif)
2024-12-13 10:00 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ThomasU 2024-12-13 09:17:45 UTC
My system language is German (Switzerland). 
I'm working on a Writer document that is entirely set to English (USA).
I type a few characters that were stored in Autotext and then press F3. The Autotext is typed out and the text is now set to German (Switzerland). Hence, Autotext is not language agnostic. Text typed afterwards is unfortunately as German (Switzerland) instead of English (USA).

My LO Options for Languages and Locales / General:
Default Languages for Documents: English (USA)
[V] Ignore system input language

Fixes needed:
1. In a first debug iteration, Autotext should at least match the language of the document.
2. In a second debug iteration / feature addition, Autotext could be associated to a specific language but the text that is typed after Autotext completion should still be in the original document's language.

Thank you.
Comment 1 Mike Kaganski 2024-12-13 10:00:14 UTC
Created attachment 198098 [details]
Screencast

Can't reproduce using Version: 24.8.4.1 (X86_64) / LibreOffice Community
Build ID: 1be9007f5d86a3741c366527d13e2970cbeef057
CPU threads: 24; OS: Windows 11 X86_64 (10.0 build 26100); UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

1. If I create an autotext using "New", it indeed has the currently selected language - as well as all other properties of the selected text. Upon insertion, it inserts the text with the saved language, but keeping typing, I have the language set before the insertion.

2. If I create the autotext using "New (text only)", it inserts with the language set at the insertion point.
Comment 2 ThomasU 2024-12-13 10:21:55 UTC
Thank you, Mike.
I forgot to specify that my System is Ubuntu, LO ubuntu package 4:24.2.6-0ubuntu0.24.04.1

I guess I'll have to dig further in my document to understand what is causing the issue.