Bug Hunting Session
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 ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyInteresting, easyHack, topicUI
Depends on:
Blocks: Options-Dialog-Language
  Show dependency treegraph
 
Reported: 2017-12-26 03:18 UTC by Mike Kaganski
Modified: 2019-04-06 02:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

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.