Bug 407724 - Unintuitive sorting of languages list in comic manager
Summary: Unintuitive sorting of languages list in comic manager
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Dockers (show other bugs)
Version: 4.2.0-alpha
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: wolthera
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 12:39 UTC by Yncke
Modified: 2020-08-15 11:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yncke 2019-05-19 12:39:18 UTC
SUMMARY
Choosing Dutch/Nederlands as a language in the comic manager results in an unintuitive user experience. The list is sorted on language code (nl), the language is Dutch (starting with D, not N), but keyboard navigation follows the language and not the country code.

STEPS TO REPRODUCE
1. Create a new project in the comic manager
2. Select some folder and choose next
3. In the basic comic project settings, open the drop down for main language
4. Scroll to the languages with D. Dutch is not there.
5. Type Ned to go to Nederlands. Nepali is chosen. (Nederlands is just underneath it, but not shown because of the scrolling.)

OBSERVED RESULT
See above.


EXPECTED RESULT
I had expected the list to be alphabetical on language name, not language code. 

SOFTWARE/OS VERSIONS
Krita

 Version: 4.2.0-beta
 Languages: en_US, en
 Hidpi: false

Qt

  Version (compiled): 5.12.2
  Version (loaded): 5.12.2

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.9.0-9-amd64
  Pretty Productname: Debian GNU/Linux 9 (stretch)
  Product Type: debian
  Product Version: 9
Comment 1 wolthera 2019-09-21 15:55:44 UTC
Hm... I am not sure what I can do about this, but I'll set this as assigned.
Comment 2 wolthera 2020-08-15 11:09:32 UTC
Git commit 75b24cdf2721924a6da3969361160a0b2d8d08e4 by Wolthera van Hövell tot Westerflier.
Committed on 15/08/2020 at 11:05.
Pushed by woltherav into branch 'master'.

CPMT: Show native language name if possible.

Because of a variety of issues with showing native language names,
especially for languages that do not use western script, the order
is still determined by language code. This is the most crossplatform
I can get this.

M  +7    -2    plugins/python/comics_project_management_tools/comics_metadata_dialog.py

https://invent.kde.org/graphics/krita/commit/75b24cdf2721924a6da3969361160a0b2d8d08e4