Tag: cws_src680_kabrefine
User: ebischoff
Date: 06/01/05 01:52:34

Modified:
 /dba/connectivity/source/drivers/kab/
  KDEInit.cxx, KDatabaseMetaData.cxx

Log:
 Issue number: 59912
 Using localized table name

File Changes:

Directory: /dba/connectivity/source/drivers/kab/
================================================

File [changed]: KDEInit.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KDEInit.cxx?r1=1.1.2.1&r2=1.1.2.2
Delta lines:  +8 -3
-------------------
--- KDEInit.cxx 4 Jan 2006 11:23:48 -0000       1.1.2.1
+++ KDEInit.cxx 5 Jan 2006 09:52:30 -0000       1.1.2.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: KDEInit.cxx,v $
  *
- *  $Revision: 1.1.2.1 $
+ *  $Revision: 1.1.2.2 $
  *
- *  last change: $Author: fs $ $Date: 2006/01/04 11:23:48 $
+ *  last change: $Author: ebischoff $ $Date: 2006/01/05 09:52:30 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -95,11 +95,16 @@
                 (const QChar *) pProcessLocale->Language->buffer,
                 (int) pProcessLocale->Language->length);
             KGlobal::locale()->setLanguage(aLanguage);
+
+           // load KDE address book's localized messages
+           KGlobal::locale()->insertCatalogue("kaddressbook");
         }
 
         // ---------------------------------------------------------------
         void KDEInit::Shutdown()
         {
+           KGlobal::locale()->removeCatalogue("kaddressbook");
+
             if ( s_pKApplication != NULL )
             {
                 delete s_pKApplication;

File [changed]: KDatabaseMetaData.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KDatabaseMetaData.cxx?r1=1.2&r2=1.2.10.1
Delta lines:  +4 -3
-------------------
--- KDatabaseMetaData.cxx       19 Dec 2005 16:49:22 -0000      1.2
+++ KDatabaseMetaData.cxx       5 Jan 2006 09:52:31 -0000       1.2.10.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: KDatabaseMetaData.cxx,v $
  *
- *  $Revision: 1.2 $
+ *  $Revision: 1.2.10.1 $
  *
- *  last change: $Author: obo $ $Date: 2005/12/19 16:49:22 $
+ *  last change: $Author: ebischoff $ $Date: 2006/01/05 09:52:31 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -38,6 +38,7 @@
 #ifndef _CONNECTIVITY_KAB_FIELDS_HXX_
 #include "kfields.hxx"
 #endif
+#include <klocale.h>
 
 #ifndef _CONNECTIVITY_FDATABASEMETADATARESULTSET_HXX_
 #include "FDatabaseMetaDataResultSet.hxx"
@@ -80,7 +81,7 @@
 const ::rtl::OUString & KabDatabaseMetaData::getAddressBookTableName()
 {
        static const ::rtl::OUString aAddressBookTableName
-               (::rtl::OUString::createFromAscii("KDE Address Book"));
+               (::rtl::OUString::createFromAscii( i18n("Address Book") ));
 
        return aAddressBookTableName;
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to