summaryrefslogtreecommitdiff
path: root/apt-pkg/init.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:29 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:29 +0000
commit8c4bad46d421a38bee98a6979389764bc55d8979 (patch)
tree831ea7518fa45d0c01ceca70f87a1aa5ef3b7159 /apt-pkg/init.cc
parent49dfb346d466a2368a91d2730c86f915fcddc87c (diff)
Gettext stuff
Author: jgg Date: 2002-10-16 05:21:33 GMT Gettext stuff
Diffstat (limited to 'apt-pkg/init.cc')
-rw-r--r--apt-pkg/init.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index 3c702af9b..5a2e6761f 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.17 2001/12/05 07:22:39 tausq Exp $
+// $Id: init.cc,v 1.18 2002/10/16 05:21:33 jgg Exp $
/* ######################################################################
Init - Initialize the package library
@@ -93,7 +93,13 @@ bool pkgInitConfig(Configuration &Cnf)
if (Cnf.FindB("Debug::pkgInitConfig",false) == true)
Cnf.Dump();
-
+
+ if (Cnf.Exists("Dir::Locale"))
+ {
+ bindtextdomain(DOMAIN,Cnf.FindDir("Dir::Locale").c_str());
+ bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str());
+ }
+
return true;
}
/*}}}*/