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.cc44
1 files changed, 14 insertions, 30 deletions
diff --git a/kde2/plugins/plppropsFactory.cc b/kde2/plugins/plppropsFactory.cc
index f483ef9..e9b6219 100644
--- a/kde2/plugins/plppropsFactory.cc
+++ b/kde2/plugins/plppropsFactory.cc
@@ -2,18 +2,6 @@
#include <config.h>
#endif
-#ifdef ENABLE_NLS
-namespace LIBPLP {
-extern "C" {
-#include <plpintl.h>
- void init_libplp_i18n() {
- setlocale(LC_ALL, "");
- textdomain(PACKAGE);
- }
-};
-};
-#endif
-
#include "plppropsFactory.h"
#include "plpprops.h"
@@ -22,35 +10,31 @@ extern "C" {
#include <klocale.h>
extern "C" {
- void *init_libplpprops() {
- return new plppropsFactory();
- }
+ void *init_libplpprops() {
+ return new plppropsFactory();
+ }
};
plppropsFactory::plppropsFactory(QObject *parent, const char *name)
- : KLibFactory(parent, name) {
- s_global = new KInstance("plpprops");
- // Install the translations
-#ifdef ENABLE_NLS
- LIBPLP::init_libplp_i18n();
-#endif
- KGlobal::locale()->insertCatalogue(QString::fromLatin1("plptools"));
- KGlobal::locale()->insertCatalogue(QString::fromLatin1("libplpprops"));
+ : KLibFactory(parent, name) {
+ s_global = new KInstance("plpprops");
+ // Install the translations
+ KGlobal::locale()->insertCatalogue(QString::fromLatin1("plptools"));
+ KGlobal::locale()->insertCatalogue(QString::fromLatin1("libplpprops"));
}
plppropsFactory::~plppropsFactory() {
- delete s_global;
+ delete s_global;
}
QObject* plppropsFactory::createObject(QObject* parent, const char *name, const char *classname, const QStringList & ) {
- QObject *obj = 0L;
+ QObject *obj = 0L;
- if ((strcmp(classname, "KPropsDlgPlugin") == 0) &&
- parent &&
- parent->inherits("KPropertiesDialog"))
- obj = new PlpPropsPlugin(static_cast<KPropertiesDialog *>(parent));
- return obj;
+ if ((strcmp(classname, "KPropsDlgPlugin") == 0) && parent &&
+ parent->inherits("KPropertiesDialog"))
+ obj = new PlpPropsPlugin(static_cast<KPropertiesDialog *>(parent));
+ return obj;
}
#include <plppropsFactory.moc>