10

How can I translate the contents of debian/control in debian packages so that the Information will be localised when the package is shown in the Software-Centre?

  •   for packages in Ubuntu

  • for single .deb packages

  • for packages in PPAs

Stefano Palazzo
  • 85,787
  • 45
  • 210
  • 227
  • 1
    If I may add something related... it'd be nice to know how to do the same for `.desktop` files. – Nathan Osman Dec 05 '10 at 22:19
  • `.desktop` files contain the translations directly in the file. See Exaile's as an example: http://paste.ubuntu.com/540133/ There are some build system tricks that can be used to merge the info in from `.po` files. `python-distutils-extras` provides helpers for python. Take a look at some of the GNOME packages for autotools examples. – andrewsomething Dec 06 '10 at 01:00

2 Answers2

4

The meta-information for the applications shown in Software-Center is provided by the app-install-data package. The title and short description can be translated through app-install-data's Rosetta page on Launchpad. I'm not sure if it is possible to submit a translation for the packages's long description.

andrewsomething
  • 37,262
  • 13
  • 93
  • 140
  • 1
    Does that mean that package information in my PPA, or in a single package that I offer for download somewhere, can't be translated for Ubuntu? – Stefano Palazzo Dec 05 '10 at 23:26
  • Hmm... That's a good question. I suppose you could provide an app-install-data-myppa package with the needed info. Canonical provides an app-install-data-partner package in their "partner" repository. Obviously that doesn't seem ideal. Hopefully someone else might have a better answer. – andrewsomething Dec 06 '10 at 01:07
3

Here is another possible solution:

With Nightmonkey you can easily find every piece of the package description. Yes, this page links to the Launchpad translations page.

There aren't frequent updates on the official repositories, so be patient.

belacqua
  • 22,880
  • 23
  • 88
  • 108
Sianis
  • 131
  • 2