Bug 476285

Summary: Post language names are in English
Product: [Applications] Tokodon Reporter: Emir SARI <emir_sari>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carl, josh
Priority: NOR    
Version: 23.08.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emir SARI 2023-10-29 11:29:02 UTC
Steps:

- Use a language other than English, and has Tokodon fully translated
- Open Tokodon
- Write a new post
- Click on the language drop-down

Expected:
- Translated language names

Actual:
- English language names
Comment 1 Joshua Goins 2023-10-29 14:13:43 UTC
We get the names from Qt, but I'm sure there's a way to get non-english names out of it. What's the ideal format here, the native language name maybe? Something like, "Deutsch" and "日本語"?
Comment 2 Emir SARI 2023-10-29 18:59:24 UTC
Yes, original names would be the way to go.
Comment 3 Joshua Goins 2023-11-05 23:54:38 UTC
Git commit 6511c9d8b42fc81e1788e12a60fce3b5ed66d7ec by Joshua Goins.
Committed on 06/11/2023 at 00:49.
Pushed by redstrate into branch 'master'.

Overhaul language selector

Now it's an OverlaySheet which is way less hacky than our custom
ComboBox reimplementation, and comes with more fringe benefits. For one,
native language names are used if available to us. Another is the
selected language is now presented in the center of the selection, so
you don't lose the selection. KItemModels is used instead of us having
another reimplementation of it.

M  +34   -54   src/content/ui/LanguageSelector.qml
M  +11   -10   src/content/ui/Settings/ProfileEditor.qml
M  +7    -5    src/content/ui/StatusComposer/StatusComposer.qml
M  +16   -23   src/editor/languagemodel.cpp
M  +2    -17   src/editor/languagemodel.h

https://invent.kde.org/network/tokodon/-/commit/6511c9d8b42fc81e1788e12a60fce3b5ed66d7ec