No translated package descriptions for -updates repository

Bug #672314 reported by Pascal De Vuyst
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
High
Unassigned
apt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: apt

Package descriptions for packages in the -updates repository always appear in English to the user in software-center or synaptic. It would be more accessible to show translated descriptions which are available in the users own language in this case.

Example:
$ LANG=C apt-cache policy gcalctool
gcalctool:
  Installed: 5.32.0-0ubuntu4
  Candidate: 5.32.0-0ubuntu4
  Version table:
 *** 5.32.0-0ubuntu4 0
        500 http://be.archive.ubuntu.com/ubuntu/ maverick-updates/main i386 Packages
        100 /var/lib/dpkg/status
     5.32.0-0ubuntu1 0
        500 http://be.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages

$ apt-cache show gcalctool
Above command returns English package descriptions for both versions while my locale is set to Dutch (nl) and the file /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_maverick_main_i18n_Translation-nl is available.

I would have expected a Dutch package description for the ubuntu1 package and an English package description for the ubuntu4 package in -updates.

The archive should have a i18n directory for the maverick-updates repository or apt should be adapted to use the translations from the release repository (maverick) so translated package descriptions are displayed for updates too in software-center, synaptic, ...

A symlink in the archive from maverick/i18n to the maverick-updates/i18n could be sufficient since the package descriptions remain the same and the Translation files provide the md5 checksum of the english descriptions to match with as described here: http://lists.debian.org/debian-devel-announce/2002/10/msg00004.html
I tested by copying /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_maverick_main_i18n_Translation-nl to /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_maverick-updates_main_i18n_Translation-nl and then translated package descriptions are displayed.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.3ubuntu7
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Sun Nov 7 22:05:27 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100925)
ProcEnviron:
 LANG=nl_BE.utf8
 SHELL=/bin/bash
SourcePackage: apt

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :
Revision history for this message
Torsten Spindler (tspindler) wrote :

I see a commit comment that reads:

  * debian/apt.cron.daily:
    - source /etc/default/locale (if available) so that the
      apt-get update cron job fetches the right translated package
      descriptions

Probably this fixes your problem too, can you test it on Natty? If not, I will try so next week.

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Hi Torsten,
It's difficult to test right now in natty since there are no packages in -updates yet, I'll have to wait until natty has been released and there are some updates available...
Also I don't think that the mentioned commit is related to this problem since the apt package on my maverick system already included this commit at the time I reported this bug.

Changed in apt (Ubuntu):
status: Incomplete → New
Revision history for this message
Torsten Spindler (tspindler) wrote : Re: [Bug 672314] Re: No translated package descriptions for -updates repository

Hi Pascal,

I agree with your assessment of the situation after taking a closer
look. It seems unlikely that the commit I quoted will influence the
situation.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Situation in Ubuntu 11.04 / natty:

$ LANG=C apt-cache policy evince
evince:
  Installed: 2.32.0-0ubuntu12.1
  Candidate: 2.32.0-0ubuntu12.1
  Version table:
 *** 2.32.0-0ubuntu12.1 0
        500 http://be.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.32.0-0ubuntu12 0
        500 http://be.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

$ apt-cache show evince
My locale is set to Dutch, above command returns English package descriptions for 2.32.0-0ubuntu12.1 from natty-updates and Dutch for 2.32.0-0ubuntu1 from the release repository as expected.

The archive should have a i18n directory for the natty-updates repository or apt should be adapted to use the translations from the release repository (natty) so translated package descriptions are displayed for updates too in apt-cache, software-center, synaptic, ...
I tested by copying /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Translation-nl to /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_natty-updates_main_i18n_Translation-nl and then translated package descriptions are displayed.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

s/2.32.0-0ubuntu1/2.32.0-0ubuntu12

Changed in apt (Ubuntu):
status: New → Confirmed
Changed in ubuntu-translations:
status: New → Confirmed
David Planella (dpm)
Changed in ubuntu-translations:
status: Confirmed → Incomplete
status: Incomplete → Triaged
importance: Undecided → High
Michael Vogt (mvo)
Changed in apt (Ubuntu):
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Colin Watson (cjwatson) wrote :

I think this is essentially caused by bug 827941; although for existing -updates publications we'll probably need to copy things over by hand.

Revision history for this message
Colin Watson (cjwatson) wrote :

I've copied translation files to -updates for hardy, lucid, maverick, and precise, which were the releases where they had uncopied files available in -proposed. These will be available after the next publisher run.

Bug 827941 is now fixed, so it will not be necessary for us to do this by hand again, and thus I'm unsubscribing ubuntu-archive. The path to actually closing this bug probably involves some combination of:

 * upload ddtp-translations (i.e. the new copyable-to-updates package) to -proposed in all supported releases, and have it copied to -updates
 * as previously suggested, change apt to fall back to other pockets to acquire description translations

Revision history for this message
David Kalnischkies (donkult) wrote :

For APT this should be fixed, so setting status accordingly.

Basically, if a translation for the description-md5 of the package is available from any source it is used, provided that the attack-value of a wrongly translated description is pretty low - especially compared to the problem that you are already trusting the source enough to have it enabled and therefore get packages from there …

Of course, if the update includes a change to the description you still need a translation in -updates as we can't display old translations.

apt (0.8.16~exp5ubuntu14) precise; urgency=low

  [ David Kalnischkies ]
  * apt-pkg/pkgcachegen.cc:
    - refactor MergeList by creating -Group, -Package and -Version specialist
    - share description list between "same" versions (LP: #868977)
      This also means that descriptions are shared across archives now.
  * apt-pkg/pkgcache.cc:
    - always prefer "en" over "" for "en"-language regardless of cache-order
      (LP: #868977)
 -- Michael Vogt <email address hidden> Wed, 19 Oct 2011 16:22:31 +0200

Changed in apt (Ubuntu):
status: In Progress → Fix Released
David Planella (dpm)
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.