[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    [PATCH] I18N for filters of KOffice 1.1
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2001-10-26 20:20:54
[Download RAW message or body]

Here is the patch for the filters of CVS KOFFICE_1_1_BRANCH.

The patch is already applied in CVS. It was only tested for KWord's Latex and 
HTML export filters.

I would urge the maintainers of the other modified filters to verify that 
their filter does still work correctly.

KSpread's filters are unmodified, because the csv filter did it already 
correctly and because the HTML filter has no i18n()

I hope that I have not missed a filter somewhere.

Thank you in advance!

Have a nice day/evening/night!
["diff.txt" (text/x-diff)]

Index: kocrypt/kocryptexport_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kocrypt/kocryptexport_factory.cc,v
retrieving revision 1.1
diff -u -r1.1 kocryptexport_factory.cc
--- kocrypt/kocryptexport_factory.cc	2001/04/11 00:02:35	1.1
+++ kocrypt/kocryptexport_factory.cc	2001/10/26 20:05:33
@@ -21,12 +21,14 @@
 #include "kocryptexport.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libkocryptexport()
     {
+        KGlobal::locale()->insertCatalogue("kocryptfilter");
         return new KoCryptExportFactory;
     }
 };
Index: kontour/applixgraphics/applixgraphicimport_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kontour/applixgraphics/applixgraphicimport_factory.cc,v
retrieving revision 1.1
diff -u -r1.1 applixgraphicimport_factory.cc
--- kontour/applixgraphics/applixgraphicimport_factory.cc	2001/03/10 17:30:54	1.1
+++ kontour/applixgraphics/applixgraphicimport_factory.cc	2001/10/26 20:05:33
@@ -22,12 +22,14 @@
 #include "applixgraphicimport.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libapplixgraphicimport()
     {
+        KGlobal::locale()->insertCatalogue("kontourapplixgraphicsfilter");
         return new APPLIXGRAPHICImportFactory;
     }
 };
Index: kpresenter/kword/kprkword_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kpresenter/kword/kprkword_factory.cc,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 kprkword_factory.cc
--- kpresenter/kword/kprkword_factory.cc	2001/04/10 23:07:34	1.1.1.1
+++ kpresenter/kword/kprkword_factory.cc	2001/10/26 20:05:36
@@ -22,12 +22,14 @@
 #include "kprkword.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libkprkword()
     {
+        KGlobal::locale()->insertCatalogue("kpresenterkwordfilter");
         return new KprKwordFactory;
     }
 };
Index: kword/applixword/applixwordimport_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kword/applixword/applixwordimport_factory.cc,v
retrieving revision 1.2
diff -u -r1.2 applixwordimport_factory.cc
--- kword/applixword/applixwordimport_factory.cc	2000/12/16 13:38:54	1.2
+++ kword/applixword/applixwordimport_factory.cc	2001/10/26 20:05:36
@@ -22,12 +22,14 @@
 #include "applixwordimport.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libapplixwordimport()
     {
+        KGlobal::locale()->insertCatalogue("kwordapplixwordfilter");
         return new APPLIXWORDImportFactory;
     }
 };
Index: kword/html/htmlexport_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kword/html/Attic/htmlexport_factory.cc,v
retrieving revision 2.0
diff -u -r2.0 htmlexport_factory.cc
--- kword/html/htmlexport_factory.cc	2001/05/08 09:02:59	2.0
+++ kword/html/htmlexport_factory.cc	2001/10/26 20:05:36
@@ -22,12 +22,14 @@
 #include "htmlexport.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libhtmlexport()
     {
+        KGlobal::locale()->insertCatalogue("kwordhtmlfilter");
         return new HTMLExportFactory;
     }
 };
Index: kword/latex/latexexport_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/kword/latex/latexexport_factory.cc,v
retrieving revision 1.2
diff -u -r1.2 latexexport_factory.cc
--- kword/latex/latexexport_factory.cc	2000/12/25 18:26:47	1.2
+++ kword/latex/latexexport_factory.cc	2001/10/26 20:05:36
@@ -22,12 +22,14 @@
 #include "latexexport.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_liblatexexport()
     {
+        KGlobal::locale()->insertCatalogue("kwordlatexfilter");
         return new LATEXExportFactory;
     }
 };
Index: olefilters/olefilter_factory.cc
===================================================================
RCS file: /home/kde/koffice/filters/olefilters/olefilter_factory.cc,v
retrieving revision 1.9
diff -u -r1.9 olefilter_factory.cc
--- olefilters/olefilter_factory.cc	2000/12/16 13:38:54	1.9
+++ olefilters/olefilter_factory.cc	2001/10/26 20:05:36
@@ -22,12 +22,15 @@
 #include "olefilter.h"
 
 #include <kinstance.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 extern "C"
 {
     void* init_libolefilter()
     {
+        // Load the I18N catalogue for the WinWord97 part
+        KGlobal::locale()->insertCatalogue("olefilterswinword97filter");
         return new OLEFilterFactory;
     }
 };

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic