Bug 114694 - Make "Default: <Name>" entry in language settings lists not sorted, possibly separated from other items
Summary: Make "Default: <Name>" entry in language settings lists not sorted, possibly ...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Yusuf Keten
Whiteboard: target:7.0.0
Keywords: difficultyInteresting, easyHack, skillCpp, skillUI
Depends on:
Blocks: Options-Dialog-Language
  Show dependency treegraph
Reported: 2017-12-26 03:18 UTC by Mike Kaganski
Modified: 2021-08-29 17:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2017-12-26 03:18:38 UTC
Language options include several language choice lists (UI and locale language, default languages for documents), as well as default currency list, all of which include a special item "Default: <Name>", which means that this setting becomes "unset" and defaults apply to it.

The item is sorted among other items alphabetically, making it appear somewhere among languages starting with the same letter as the word "Default" translated to current UI language. It is not obvious where to search for the item, because if there are no default items on the page, one has to guess which term (and which translation) was used: is it "Standard"? or "Default"?

The proposal is to make the items not sorted (topmost; maybe separated from the rest of list by a horizontal line, like last-used fonts in font drop-down in Formatting toolbar).
Comment 1 V Stuart Foote 2017-12-26 17:06:11 UTC
Agree, Default entry should appear at top of listing and be unsorted--that is the better UI. And a separator would be helpful.
Comment 2 Mike Kaganski 2019-04-05 17:19:33 UTC
A code pointer (for an implementation): see OfaViewTabPage::OfaViewTabPage in cui/source/options/optgdlg.cxx (Options ▸ LibreOffice ▸ View), which populates icon style list box, setting the "automatic" entry as the first element, and puts a separator after it.
Comment 3 Mike Kaganski 2019-04-05 19:29:45 UTC
... and the code populating the language lists is also in that file, in OfaLanguagesTabPage::OfaLanguagesTabPage, where the lists (e.g., m_pWesternLanguageLB) are set to sorted; and InsertDefaultLanguage is called.
Comment 4 Commit Notification 2020-02-11 17:26:48 UTC
Yusuf Keten committed a patch related to this issue.
It has been pushed to "master":


tdf#114694: Make default value in language settings the first element

It will be available in 7.0.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.