[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#542940: python-apt: Translated package descriptions are broken



On Thu, Aug 20, 2009 at 12:15:14AM +0200, Sebastian Heinlein wrote:
> Package: python-apt
> Version: 0.7.12.1
> Severity: important
> 
> Translated descriptions of packages are not shown.
> 
[...]
> 
> unstable:~$ python
> Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) 
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import apt
> >>> apt.Cache()["synaptic"].candidate.description
> u'Synaptic is a graphical package management tool based on GTK+ and APT. Synaptic enables you to install, upgrade and remove software packages in a user friendly way.\n\nBesides these basic functions the following features are provided:\n* Search and filter the list of available packages\n* Perform smart system upgrades\n* Fix broken package dependencies\n* Edit the list of used repositories (sources.list)\n* Download the latest changelog of a package\n* Configure packages through the debconf system\n* Browse all available documentation related to a package (dwww is required)\n'

You forgot to call locale.setlocale(locale.LC_ALL, ''). This is a
requirement to get translations.



-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpZ_x71tuT7s.pgp
Description: PGP signature


Reply to: