Bug 434740

Summary: discover does not show translation for debian packages which have it
Product: [Applications] Discover Reporter: Nick Shaforostoff <shafff>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, nate
Priority: NOR Flags: shafff: Translation_missing+
Version First Reported In: 5.20.5   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: discover showing audacity plus packages.debian,org

Description Nick Shaforostoff 2021-03-22 00:51:32 UTC
Created attachment 136933 [details]
discover showing audacity plus packages.debian,org

STEPS TO REPRODUCE
1. Open Discover in Debian with Russian locale
2. click Updates
3. find Audacity, click 'Additional info'


OBSERVED RESULT
Package description in English

EXPECTED RESULT
Package description in Russian, like from apt-cache cmdline tool or from packages.debian.org web-site


ADDITIONAL INFORMATION
See attached screenshot. See https://packages.debian.org/ru/sid/audacity
This is interface used by translators to translate package desciptions for Debian: https://ddtp.debian.org/ddtss/index.cgi/xx
This is statistics about translations into different languages: https://ddtp.debian.org/stats/stats-sid.html

apt-cache show audacity in konsole shows package description in Russian, so my system does have it offline, so I believe Discover should be able to read these translations from APT package cache
Comment 1 Nate Graham 2021-03-22 01:44:57 UTC
This is an issue withthe Debian packaging. The package for Audacity should do one of the following:
1. Automatically install language packages along with the base app
2. Expose languages as add-ons in the AppStream metadata so the user can choose to install them in Discover

Without either of these, the user has to go manually find the languages packages and install them, which is a poor user experience in the best of times, and will not work at all in Discover because it intentionally only shows packages with AppStream metadata (such as apps) rather than every single package under the sun that your package manager has visible. Discover is meant as more of an app store than a package manager.