summaryrefslogtreecommitdiff
path: root/cmdline/apt-extracttemplates.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:51 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:51 +0000
commit67111687c005d470d176a2029336e4f2b5dc77de (patch)
treee4a062ecfec4ec50ad89ee81e5a2669229b4b4b2 /cmdline/apt-extracttemplates.cc
parentc908c48e2be92df532dbbf1f15557308ee1c555b (diff)
setup textdomain/etc for i18n stuff
Author: jgg Date: 2002-01-09 04:59:44 GMT setup textdomain/etc for i18n stuff
Diffstat (limited to 'cmdline/apt-extracttemplates.cc')
-rw-r--r--cmdline/apt-extracttemplates.cc8
1 files changed, 6 insertions, 2 deletions
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 ||