aboutsummaryrefslogtreecommitdiffstats
path: root/kde2/plugins/plppropsFactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kde2/plugins/plppropsFactory.cc')
-rw-r--r--kde2/plugins/plppropsFactory.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/kde2/plugins/plppropsFactory.cc b/kde2/plugins/plppropsFactory.cc
index 2c553cf..616b12b 100644
--- a/kde2/plugins/plppropsFactory.cc
+++ b/kde2/plugins/plppropsFactory.cc
@@ -1,3 +1,13 @@
+namespace LIBPLP {
+extern "C" {
+#include <intl.h>
+ void init_libplp_i18n() {
+ bind_textdomain_codeset(PACKAGE, "latin1");
+ textdomain(PACKAGE);
+ }
+};
+};
+
#include "plppropsFactory.h"
#include "plpprops.h"
@@ -15,7 +25,8 @@ plppropsFactory::plppropsFactory(QObject *parent, const char *name)
: KLibFactory(parent, name) {
s_global = new KInstance("plpprops");
// Install the translations
- //KGlobal::locale()->insertCatalogue("plpprops");
+ KGlobal::locale()->insertCatalogue(QString::fromLatin1("plptools"));
+ LIBPLP::init_libplp_i18n();
}
plppropsFactory::~plppropsFactory() {
@@ -26,7 +37,6 @@ QObject* plppropsFactory::createObject(QObject* parent, const char *name, const
QObject *obj = 0L;
- cout << "plppropsFactory: name=" << name << " class=" << classname << endl;
if ((strcmp(classname, "KPropsDlgPlugin") == 0) &&
parent &&
parent->inherits("KPropertiesDialog"))