summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:00:36 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:00:36 +0000
commitb3115d9257fb3480824d4536a8ef47ed6f598bce (patch)
tree5c0936e8eee4a13f60df161a10808f27b0ede357
parentfa9bbc704b0df63bbdcc7bd79358154fca2c405c (diff)
Only set the text domain if APT_DOMAIN is defined(it's ...
Author: doogie Date: 2003-02-09 20:31:05 GMT Only set the text domain if APT_DOMAIN is defined(it's not when building static libs).
-rw-r--r--apt-pkg/init.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index db75e6166..abaee9a7a 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.19 2002/11/11 07:00:16 doogie Exp $
+// $Id: init.cc,v 1.20 2003/02/09 20:31:05 doogie Exp $
/* ######################################################################
Init - Initialize the package library
@@ -94,11 +94,13 @@ 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
return true;
}