X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a7c835af20feeb470238ead3bda36af978c2600f..e0c4f06387ade5761e644b5b96e41284c12da23c:/apt-pkg/init.cc?ds=sidebyside diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc index 930c45a87..6118845e8 100644 --- a/apt-pkg/init.cc +++ b/apt-pkg/init.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: init.cc,v 1.16 2001/03/13 06:51:46 jgg Exp $ +// $Id: init.cc,v 1.21 2004/02/27 00:46:44 mdz Exp $ /* ###################################################################### Init - Initialize the package library @@ -39,6 +39,7 @@ bool pkgInitConfig(Configuration &Cnf) Cnf.Set("APT::Architecture",COMMON_CPU); else Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU); + Cnf.Set("APT::Build-Essential::", "build-essential"); Cnf.Set("Dir","/"); // State @@ -92,7 +93,18 @@ bool pkgInitConfig(Configuration &Cnf) if (Cnf.FindB("Debug::pkgInitConfig",false) == true) Cnf.Dump(); - + +#ifdef APT_DOMAIN + if (Cnf.Exists("Dir::Locale")) + { + bindtextdomain(APT_DOMAIN,Cnf.FindDir("Dir::Locale").c_str()); + bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str()); + } +#endif + + // Translation + Cnf.Set("APT::Acquire::Translation", "environment"); + return true; } /*}}}*/ @@ -123,7 +135,7 @@ bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys) } if (Sys == 0) - return _error->Error(_("Unable to determine a suitable system type")); + return _error->Error(_("Unable to determine a suitable packaging system type")); } return Sys->Initialize(Cnf);