Bug 420891

Summary: Application descriptions don’t fall back to other languages (or English) when translations are missing
Product: [Applications] Discover Reporter: Karl Ove Hufthammer <karl>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.18.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot showing Discover with missing translations

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