Bug 420891 - Application descriptions don’t fall back to other languages (or English) when translations are missing
Summary: Application descriptions don’t fall back to other languages (or English) when...
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 5.18.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-02 09:04 UTC by Karl Ove Hufthammer
Modified: 2021-02-04 02:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot showing Discover with missing translations (98.96 KB, image/png)
2020-05-02 09:04 UTC, Karl Ove Hufthammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ove Hufthammer 2020-05-02 09:04:41 UTC
Created attachment 128093 [details]
Screenshot showing Discover with missing translations

SUMMARY
When the appdata for an application is only partially translated, i.e. some strings are translated and some are not, the non-translated strings are simply hidden, instead of being shown in the fall-back language (e.g. English). This make the description of the application very confusing.


STEPS TO REPRODUCE
1. Set your language preferences in KDE to Norwegian Nynorsk (nn).
2. Start Discover.
3. Search for KGeography.

OBSERVED RESULT
The application descriptions only shows the text ‘Funksjonar:’ (translation of ‘Features:’), nothing else (see screenshot).


EXPECTED RESULT
The strings that are translated into ‘nn’ in the appdata file should be shown translated while the other strings (here: description of KGeography and list of features) should be shown in a fall-back language (the second, third etc. preferred language, or ultimately English), just like it does for normal UI strings in application.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200428
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1


ADDITIONAL INFORMATION
I think this *used* to work?
Comment 1 Aleix Pol 2020-12-01 19:50:20 UTC
Created an issue upstream because there's not much we can do from Discover.
https://github.com/ximion/appstream/issues/293

Sorry about this issue. It definitely is not a good look.
Comment 2 Aleix Pol 2021-02-04 02:20:47 UTC
Upstream says it's addressed, if you could retest with 0.14, I'd appreciate it.

https://github.com/ximion/appstream/commit/be026a40d89544d67fc7980bd17ef0db744fbef4