Bug 406035 - When apply the localized string, Discover shows the unexpected shortcut caption.
Summary: When apply the localized string, Discover shows the unexpected shortcut caption.
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.15.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-30 09:36 UTC by pan93412
Modified: 2019-05-13 04:23 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.16.0
Sentry Crash Report:


Attachments
The observed result of "About" (2.87 MB, image/png)
2019-03-30 09:36 UTC, pan93412
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pan93412 2019-03-30 09:36:41 UTC
Created attachment 119153 [details]
The observed result of "About"

SUMMARY
Discover uses the first letter of the entry string.

In the normal, for example, "About", it shows the correct result: "Alt-A"
but when we applied the localized string, for example, "關於", it shows the
incorrect result: "Alt-關"

The issues produce not only "About" but "Installed" "Source"... all the left-corner sidebar entries.

STEPS TO REPRODUCE
1. Change `LANG` and `LANGUAGE` environment variable to `zh_TW.UTF-8` and `zh_TW`, and install any chinese font.
2. Open "Discover" application.
3. Move the cursor to the left-corner "關於" of the application.
4. It shows "Alt-關" not "Alt-A".

OBSERVED RESULT
Alt-關

EXPECTED RESULT
Alt-A

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.3
(available in About System)
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Comment 1 Aleix Pol 2019-04-27 12:05:56 UTC
Git commit d4c4f21bdf19b95c8478d7364e104e8406068621 by Aleix Pol.
Committed on 27/04/2019 at 12:05.
Pushed by apol into branch 'master'.

Let QQuickShortcut decide what's the best string to offer

M  +1    -1    discover/qml/ActionListItem.qml

https://commits.kde.org/discover/d4c4f21bdf19b95c8478d7364e104e8406068621