https://bugs.documentfoundation.org/show_bug.cgi?id=151020

            Bug ID: 151020
           Summary: Writer: Caption strings incorrectly set to UI language
                    instead of document language
           Product: LibreOffice
           Version: 7.3.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

This is a follow-up to
https://ask.libreoffice.org/t/working-with-different-language-documents/81898/

LO offers the possibility to separate UI language (menu, toolbars, …) from
document language (both set in Tools>Options, Language Settings>Languages).

It is then expected that any action on text will be done according to document
language.

This is correct for spell/grammar checking as document language "drips down" to
Default Paragraph Style, then to all dependent paragraph styles.

However, this does not work when "synthesised" data is inserted into the
document, as in the case of `Insert`>`Caption`. Captioning is driven by a
dialog, hence this dialog is displayed in the UI language. But the Category
drop-down menu also shows strings in the UI language whereas they should be in
document language because this is where they will be inserted in the end.

Ideally, they should be in the insertion-position language but it is very
difficult to determine which language to use in a multi-lingual document,
though we can expect that captions will all be in document language for
consistency.

I admit that language packs may not be installed as they are not necessary to
type a document in any language. Language packs are only mandatory to change UI
language. Without language packs, we lose functionality like spellchecking but
this doesn't prevent from typing. So, captioning should try to "translate" the
Category string if language pack is present and revert to UI language or en_US
in last resort.

No sample file attached because the result depends on one's computer
configuration not on the document.

Step to reproduce:

- configure LO fur different UI and document languages
1. create a new Writer document
2. Insert>Frame (any will do as we only caption it, just make it wide enough)
3. Insert>Caption

Result:
Caption category is in UI language

Expected result:
Caption category in document language

Version: 7.3.6.2
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to