https://bugs.documentfoundation.org/show_bug.cgi?id=95274
خالد حسني <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #45 from خالد حسني <[email protected]> --- I tried to debug this language status menu, and here is my findings so far: The code that populates the language menu is LanguageSelectionMenuController::fillPopupMenu() in: https://git.libreoffice.org/core/+/refs/heads/master/framework/source/uielement/langselectionmenucontroller.cxx#160 Which in turn calls FillLangItems() which is responsible for selecting what language items to show: https://git.libreoffice.org/core/+/refs/heads/master/framework/source/fwi/helper/mischelper.cxx#57 The code seems to add: 1. current language of the text selection 2. system language 3. ui language 4. guess language based on the text selection (seems to use libexttextcat) 5. keyboard language (I think this works in Windows only) 6. all languages used in the document and in each of these (expect of 1) the language is only added if it makes sense for the script. These all seems reasonable to me. Now the question is what other criteria we want to use for adding languages? -- You are receiving this mail because: You are the assignee for the bug.
