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

Bug#626739: Confusion about translation options



Hallo Goswin,

Goswin von Brederlow hat am Sat 14. May, 22:38 (+0200) geschrieben:
> Package: apt
> Version: 0.8.4
> Severity: normal
> 
> Hi,
> 
> I was looking into how to get apt to download different translation
> files and the results are a bit confusing.
> 
> /usr/share/doc/apt/examples/configure-index.gz has only
> APT::Acquire::Languages and "apt-config dump" shows only
> APT::Acquire::Translation.
> 
> Is the example config laaging behind or is apt-config missing a
> default entry for Languages?

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.

_error->Notice("Option '%s' is deprecated. Please use '%s' instead, see 'man 5 apt.conf' for details.",
		"APT::Acquire::Translation", "Acquire::Languages");

A small fix:

--- /tmp/aptconfiguration.cc    2011-05-28 02:26:51.026113124 +0200
+++ /tmp/apt-0.8.14.1/apt-pkg/aptconfiguration.cc       2011-05-28 02:26:55.893113140 +0200
@@ -224,7 +224,7 @@
                environment.push_back("en");
        }
 
-       // Support settings like Acquire::Translation=none on the command line to
+       // Support settings like Acquire::Languages=none on the command line to
        // override the configuration settings vector of languages.
        string const forceLang = _config->Find("Acquire::Languages","");
        if (forceLang.empty() == false) {

I think this patch removes the setting of APT::Acquire::Translation from
apt-config and add the default values for Acquire::Languages.

--- /tmp/init.cc        2011-05-28 02:29:10.882113405 +0200
+++ /tmp/apt-0.8.14.1/apt-pkg/init.cc   2011-05-28 02:29:43.694113471 +0200
@@ -86,7 +86,11 @@
    Cnf.Set("Dir::Ignore-Files-Silently::", "\\.dpkg-[a-z]+$");
 
    // Translation
-   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");
 
    // Default cdrom mount point
    Cnf.Set("Acquire::cdrom::mount", "/media/cdrom/");

Bye, Jörg.
-- 
Angenehme Worte sind nie wahr,
wahre Worte sind nie angenehm.

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


Reply to: