On Sat, May 28, 2011 at 02:38, Jörg Sommer <[email protected]> wrote: >> I was looking into how to get apt to download different translation >> files and the results are a bit confusing.
I suggests to have a look at the apt.conf manpage,
it should include everything you might need to know about the setting.
(Or at least i hope so - if not, what is unclear?)
> According to the code in apt-0.8.14.1/apt-pkg/aptconfiguration.cc it's
> Acquire::Languages. There's an error message telling A::A:T is
> deprecated.
Thats right.
> A small fix:
> - // Support settings like Acquire::Translation=none on the command
> line to
> + // Support settings like Acquire::Languages=none on the command line
> to
Thanks!
> - Cnf.Set("APT::Acquire::Translation", "environment");
> + Cnf.Set("Acquire::Languages::", "environment");
> + Cnf.Set("Acquire::Languages::", "de");
> + Cnf.Set("Acquire::Languages::", "en");
> + Cnf.Set("Acquire::Languages::", "none");
> + Cnf.Set("Acquire::Languages::", "fr");
You are right, the old setting could be removed from init.cc. (again thanks!)
The default settings are a bit more complicated through.
The default is as the manpage says "environment" and "en". As the list is
a fifo-list we can't set a default in init.cc as it will prevent a user from
changing it from file or commandline (if he doesn't use #clear in the file).
So that this option isn't set by default and isn't populated even after the
initialization as intended - also to discourage library users from accessing
this config setting directly.
The same is btw true for APT::Architectures needed for Multi-Arch…
Attached patch for apt-config will show both settings in dump.
Note through that this not what was set in a configfile, but what will
be used by the applications - so e.g. "environment" is expanded to
whatever your environment defines. I think thats more useful than just
echoing what is written in the config-file or in the manpage.
Best regards
David Kalnischkies
apt-626739-show-in-apt-config-dump
Description: Binary data

