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

Bug#437523: [Patch] DDTP: APT::Acquire::Translation "none" in apt.conf doesn't have any effect



tags 437523 + patch
thanks

Am Montag, den 13.08.2007, 05:20 +0200 schrieb Daniel Leidert:

> Independent from what you can read below, my apt.conf contanis:
> 
> APT::Acquire::Translation "none";
> 
> because I don't want any translated package description.

The issue is really easy fixable. In apt-pkg/init.cc the value for
APT::Acquire::Translation is set *after* reading the configuration
files, which overwrites any value set in the configuration files. So the
attached patch should fix the problem.

Please check and apply it for the next version of apt.

Regards, Daniel
--- apt-pkg/init.cc.old	2007-10-24 01:13:23.000000000 +0200
+++ apt-pkg/init.cc	2007-10-24 01:14:10.000000000 +0200
@@ -72,7 +72,10 @@ bool pkgInitConfig(Configuration &Cnf)
    // State   
    Cnf.Set("Dir::Log","var/log/apt");
    Cnf.Set("Dir::Log::Terminal","term.log");
-   
+
+   // Translation
+   Cnf.Set("APT::Acquire::Translation", "environment");
+
    bool Res = true;
    
    // Read an alternate config file
@@ -104,9 +107,6 @@ bool pkgInitConfig(Configuration &Cnf)
    }
 #endif
 
-   // Translation
-   Cnf.Set("APT::Acquire::Translation", "environment");
-   
    return true;
 }
 									/*}}}*/

Reply to: