// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: init.cc,v 1.17 2001/12/05 07:22:39 tausq Exp $
+// $Id: init.cc,v 1.21 2004/02/27 00:46:44 mdz Exp $
/* ######################################################################
Init - Initialize the package library
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
+
return true;
}
/*}}}*/
}
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);