Summary

This spec describes what needs to be done to get translated package descriptions in apt.

Rationale

The current apt does only support package descriptions in a single language. This is English currently. A more flexible mechanism is required to show the translations in the locale the user is using.

Use cases

Scope

Design

The Translation-$LANG file carries the following information per package:

Package: <package-name>
Description-md5: <the md5 checksum of the english description>
Description-$lang.$encoding: <translated headline>
 <translated section>

Launchpad integration

The tarball for uploads to the archive should be handled via the launchpad custom uploads mechanism (raw-ddtp-tarball). A tarball looks like this:

translations_$component_$version.tar.gz
e.g.
translations_main_20060728.tar.gz

and it will contain:

i18n/Translations-de
i18n/Translations-de.gz
i18n/Translations-de.bz2
...

those files will be installed in the archive at: http://archive.ubuntu.com/ubuntu/dists/edgy/main/i18n

Implementation

The apt bits are implemented in http://people.ubuntu.com/~mvo/bzr/apt/ddtp/ but need testing. Import/export for rosetta is available in http://people.ubuntu.com/~mvo/bzr/apt-ddtp-tools--main/ (a bit rought).

The following steps needs to be performed to fully implement translated pacakge descriptions for ubuntu:

A current i18n tarball for edgy is available at: http://people.ubuntu.com/~mvo/apt/ddtp/translations_main_20060728.tar.gz

Outstanding issues

The code needs testing.


CategorySpec

TranslatedPackageDescriptionsSpec (last edited 2008-08-06 16:35:23 by localhost)