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

Re: Bug#678227: Bug#641967: Apt downloads all description translations



On Tue, Aug 28, 2012 at 01:05:33PM +0200, Julien Cristau wrote:
> On Tue, Aug 28, 2012 at 12:47:09 +0200, Julian Andres Klode wrote:
> 
> > On Tue, Aug 28, 2012 at 10:47:43AM +0200, Samuel Thibault wrote:
> > > David Kalnischkies, le Tue 28 Aug 2012 10:31:23 +0200, a écrit :
> > > > > The issue also happens at debian-installer time, thus downloading way
> > > > 
> > > > (I don't know why an "also" is in that sentence …)
> > > 
> > > That's actually because 678227 is what made debian-boot consider the
> > > issue quoted above "already reported" (see #684954).
> > > 
> > > > apt-cdrom copies every Translation-* file from the disk to /var/lib/apt/lists
> > > 
> > > Why?  Why not just for the current locale?
> > 
> > How about copying files for all configured locales on the system? Unless
> > someone installes locales-all, this would be the best solution in my
> > opinion (and the user can still overwrite it with APT configuration
> > options anyway).
> > 
> Just because I have locales-all installed doesn't mean I want every
> single translation downloaded.  Getting just the english ones is painful
> enough thankyouverymuch.

Right, but the installer does not install locales-all (right?). So by
default, only the files for the configured locales will be copied. 

We could add a switch to apt-cdrom to copy all configured locales for
d-i purposes, and then once we have translation files in /var/lib/apt/lists
only recognize those languages and the ones configured via APT
configuration. We don't even need a switch, we could just look at this
list if no languages are explicitely configured for APT or translations
found in /var/lib/apt/lists.

This solves the problem with initial setup copying all translation
files and should work for everyone.


-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

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


Reply to: