summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmdline/apt-cache.cc8
-rw-r--r--cmdline/apt-cdrom.cc8
-rw-r--r--cmdline/apt-config.cc8
-rw-r--r--cmdline/apt-extracttemplates.cc8
-rw-r--r--cmdline/apt-get.cc12
-rw-r--r--cmdline/apt-sortpkgs.cc8
6 files changed, 38 insertions, 14 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 426bfc5b9..3c7084c9d 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cache.cc,v 1.54 2001/12/26 06:47:58 jgg Exp $
+// $Id: apt-cache.cc,v 1.55 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
apt-cache - Manages the cache files
@@ -1337,7 +1337,11 @@ int main(int argc,const char *argv[])
{0,0}};
CacheInitialize();
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 8266bdcfb..d8c717407 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cdrom.cc,v 1.40 2001/08/18 22:23:38 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.41 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
APT CDROM - Tool for handling APT's CDROM database.
@@ -776,7 +776,11 @@ int main(int argc,const char *argv[])
{"add",&DoAdd},
{"ident",&DoIdent},
{0,0}};
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc
index 327700e1c..5d4efdcbc 100644
--- a/cmdline/apt-config.cc
+++ b/cmdline/apt-config.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-config.cc,v 1.7 2001/02/20 07:03:17 jgg Exp $
+// $Id: apt-config.cc,v 1.8 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
APT Config - Program to manipulate APT configuration files
@@ -98,7 +98,11 @@ int main(int argc,const char *argv[])
CommandLine::Dispatch Cmds[] = {{"shell",&DoShell},
{"dump",&DoDump},
{0,0}};
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc
index 4c54c67b0..9422a946a 100644
--- a/cmdline/apt-extracttemplates.cc
+++ b/cmdline/apt-extracttemplates.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-extracttemplates.cc,v 1.7 2001/04/29 05:40:36 jgg Exp $
+// $Id: apt-extracttemplates.cc,v 1.8 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
APT Extract Templates - Program to extract debconf config and template
@@ -342,7 +342,11 @@ int main(int argc, const char **argv)
{'c',"config-file",0,CommandLine::ConfigFile},
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index a3dc92816..2eb670064 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.112 2001/12/05 07:22:40 tausq Exp $
+// $Id: apt-get.cc,v 1.113 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -2149,11 +2149,15 @@ int main(int argc,const char *argv[])
{"clean",&DoClean},
{"autoclean",&DoAutoClean},
{"check",&DoCheck},
- {"source",&DoSource},
+ {"source",&DoSource},
{"moo",&DoMoo},
- {"help",&ShowHelp},
+ {"help",&ShowHelp},
{0,0}};
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc
index bacaf01dd..fe5fe13dd 100644
--- a/cmdline/apt-sortpkgs.cc
+++ b/cmdline/apt-sortpkgs.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-sortpkgs.cc,v 1.2 2001/02/20 07:03:17 jgg Exp $
+// $Id: apt-sortpkgs.cc,v 1.3 2002/01/09 04:59:44 jgg Exp $
/* ######################################################################
APT Sort Packages - Program to sort Package and Source files
@@ -168,7 +168,11 @@ int main(unsigned int argc,const char *argv[])
{'c',"config-file",0,CommandLine::ConfigFile},
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
-
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+ textdomain(PACKAGE);
+
// Parse the command line and initialize the package library
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||