]> git.saurik.com Git - apt.git/commitdiff
setup textdomain/etc for i18n stuff
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:51 +0000 (16:58 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:51 +0000 (16:58 +0000)
Author: jgg
Date: 2002-01-09 04:59:44 GMT
setup textdomain/etc for i18n stuff

cmdline/apt-cache.cc
cmdline/apt-cdrom.cc
cmdline/apt-config.cc
cmdline/apt-extracttemplates.cc
cmdline/apt-get.cc
cmdline/apt-sortpkgs.cc

index 426bfc5b9ed8ea60eb9517caab9ca7fdb3ab72d8..3c7084c9ddb44b4ebfddb41b0541f34499a6938e 100644 (file)
@@ -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 ||
index 8266bdcfb7253bb5ff6e6cc185de2d3d3ba0219a..d8c717407a263ba518734926606d0a5845dc2079 100644 (file)
@@ -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 ||
index 327700e1c54dda2205e9d6a54ea8610dee0cff71..5d4efdcbc075c79e19d656e586ea72ad6c2d20df 100644 (file)
@@ -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 ||
index 4c54c67b089f899d84db50da21ca34a10a46de02..9422a946a747c1adc5b8159f634756e123ffce5a 100644 (file)
@@ -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 ||
index a3dc92816c5a0c3e0e9a123ba785eddd37808b17..2eb6700649488a27b58f06687efcf8031b85d2dd 100644 (file)
@@ -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 ||
index bacaf01dd51eac26a9d12682e39fe56e322c0023..fe5fe13dd638bc7bf161ff2cd0cf8d8de5e24c14 100644 (file)
@@ -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 ||