Skip to content

Commit

Permalink
Gettext stuff
Browse files Browse the repository at this point in the history
Author: jgg
Date: 2002-10-16 05:21:33 GMT
Gettext stuff
  • Loading branch information
Arch Librarian committed Sep 20, 2004
1 parent 49dfb34 commit 8c4bad4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions apt-pkg/init.cc
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}
/*}}}*/
Expand Down
4 changes: 3 additions & 1 deletion apt-pkg/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ HEADER_TARGETDIRS = apt-pkg
# Bring in the default rules
include ../buildlib/defaults.mak

# The library name, don't forget to update init.h
# The library name, don't forget to update init.h and the copy in
# methods/makefile - FIXME
LIBRARY=apt-pkg
LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
MAJOR=3.3
MINOR=0
SLIBS=$(PTHREADLIB)
DOMAIN:=libapt-pkg$(MAJOR)

# Source code for the contributed non-core things
SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
Expand Down

0 comments on commit 8c4bad4

Please sign in to comment.