Bug 159888 - DeepL Translation copies and translates unselected header and footer contents instead of the actual selection
Summary: DeepL Translation copies and translates unselected header and footer contents...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Header-Footer DeepL
  Show dependency treegraph
 
Reported: 2024-02-25 21:24 UTC by Gunter Ohrner
Modified: 2024-02-26 12:09 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document to demonstrate garbled text contents after translating. (10.51 KB, application/vnd.oasis.opendocument.text)
2024-02-25 21:24 UTC, Gunter Ohrner
Details
Screencast showing how translation of four selected rows creates a totally messed-up result. (302.49 KB, image/gif)
2024-02-25 21:29 UTC, Gunter Ohrner
Details
Screencast showing how translating the whole document without any selections creates garbage and error messages (848.48 KB, image/gif)
2024-02-25 21:31 UTC, Gunter Ohrner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2024-02-25 21:24:34 UTC
Created attachment 192762 [details]
Example document to demonstrate garbled text contents after translating.

Please see the attached example document:

Select any text in the page content (not header or footer row), and translate it using the DeepL translate integration.

It will "magically" include header and footer text into *every* translated paragraph, rendering the translation result unusable.

Also see attached screencast for a demonstration.
Comment 1 Gunter Ohrner 2024-02-25 21:29:35 UTC
Created attachment 192763 [details]
Screencast showing how translation of four selected rows creates a totally messed-up result.
Comment 2 Gunter Ohrner 2024-02-25 21:31:13 UTC
Created attachment 192764 [details]
Screencast showing how translating the whole document without any selections creates garbage and error messages
Comment 3 Stéphane Guillou (stragu) 2024-02-26 11:06:17 UTC
Thanks for the report.
Reproduced with:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3b73071f7a7fcf80547da81e5effe4ed6018bbb4
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Instead of translating the selection:
- it copies the original header and footer text in the body, repeatedly
- it translates the header and footer contents once
- it only translates the first line of the selection

Mert, any idea?