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

Re: How does apt select and priotize translations?



On Thu, Sep 01, 2011 at 02:12:26PM +0000, Camaleón wrote:
> On Sun, 28 Aug 2011 13:54:53 +0200, Dirk Weinhardt wrote:
> 
> > I am about to install a particular package from wheezy on a squeeze
> > system. Packages from wheezy should be pinned to a priority of 50. While
> > configuring and testing apt I found that apt searches for German
> > translations although the system's locale is en_US.utf8 and pinning
> > priorities seem not to be applied to translations.
> > 
> > I have added wheezy main to sources.list: deb
> > http://ftp.debian.org/debian wheezy main
> > 
> > And I have assigned a pin priority of 50 to testing in apt's
> > preferences: Package: *
> > Pin: release a=testing
> > Pin-Priority: 50
> > 
> > The system's local initially was de_DE and I have changed that to
> > en_US.utf8 by running "dpkg-reconfigure locales". "locale" shows
> > "LANG=en_US.utf8" and "locale -a" does not list any de locale.
> > 
> > Why is apt still querying German translations and how can that be
> > avoided?
> 
> (...)
> 
> Mmm, interesting question.
> 
> I have "es" (Spanish) and "en" (English) locales in my wheezy system and 
> get sporadic updates for both -sometimes Spanish, sometimes English and 
> sometimes for both- package descriptions but true is that I never paid 
> attention on this because I guess it only affects to "descriptions" not 
> the packages nor application themselves :-?
> 
> Anyway, I would also like to know how this is managed, I mean, if 
> language package descriptions updates depend on the number of locale(s) 
> defined in the system or if it takes their settings from another source.

According to 'man apt.conf', Acquire::Languages can be set to declare
which translations one wants downloading. The pseudo-language
"environment" (which is part of the default setting) specifies that apt
should check $LC_MESSAGES. However, if this doesn't include a "de"
language, then it might actually be that Acquire::Languages was set at
install time.

Check /etc/apt/apt-conf.d/* for Acquire::Languages.

> 
> Greetings,
> 
> -- 
> Camaleón
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] pan.2011.09.01.14.12.26@gmail.com">http://lists.debian.org/[🔎] pan.2011.09.01.14.12.26@gmail.com
> 

-- 
Darac Marjal

Attachment: signature.asc
Description: Digital signature


Reply to: