Просмотр исходного кода

Only set the text domain if APT_DOMAIN is defined(it's ...
Author: doogie
Date: 2003-02-09 20:31:05 GMT
Only set the text domain if APT_DOMAIN is defined(it's not when building
static libs).

Arch Librarian лет назад: 22
Родитель
Сommit
b3115d9257
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      apt-pkg/init.cc

+ 3 - 1
apt-pkg/init.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: init.cc,v 1.19 2002/11/11 07:00:16 doogie Exp $
+// $Id: init.cc,v 1.20 2003/02/09 20:31:05 doogie Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Init - Initialize the package library
    Init - Initialize the package library
@@ -94,11 +94,13 @@ bool pkgInitConfig(Configuration &Cnf)
    if (Cnf.FindB("Debug::pkgInitConfig",false) == true)
    if (Cnf.FindB("Debug::pkgInitConfig",false) == true)
       Cnf.Dump();
       Cnf.Dump();
    
    
+#ifdef APT_DOMAIN
    if (Cnf.Exists("Dir::Locale"))
    if (Cnf.Exists("Dir::Locale"))
    {  
    {  
       bindtextdomain(APT_DOMAIN,Cnf.FindDir("Dir::Locale").c_str());
       bindtextdomain(APT_DOMAIN,Cnf.FindDir("Dir::Locale").c_str());
       bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str());
       bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str());
    }
    }
+#endif
    
    
    return true;
    return true;
 }
 }