diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-24 17:35:57 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-24 17:35:57 +0000 |
commit | 0f1ffc4064c073854fa51949cb8e9c44cf8885ee (patch) | |
tree | 9695c15197cea023f6ea72593f87e88f39f2c1f4 /kde2/plugins/plppropsFactory.cc | |
parent | 2bae21ae65a3f1de3bd39d62b1064f63688f2430 (diff) | |
download | plptools-0f1ffc4064c073854fa51949cb8e9c44cf8885ee.tar.gz plptools-0f1ffc4064c073854fa51949cb8e9c44cf8885ee.tar.bz2 plptools-0f1ffc4064c073854fa51949cb8e9c44cf8885ee.zip |
NLS fixes, kpsion config
Diffstat (limited to 'kde2/plugins/plppropsFactory.cc')
-rw-r--r-- | kde2/plugins/plppropsFactory.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kde2/plugins/plppropsFactory.cc b/kde2/plugins/plppropsFactory.cc index de4ba10..45b47b1 100644 --- a/kde2/plugins/plppropsFactory.cc +++ b/kde2/plugins/plppropsFactory.cc @@ -1,12 +1,20 @@ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifdef ENABLE_NLS namespace LIBPLP { extern "C" { #include <intl.h> void init_libplp_i18n() { +#ifdef HAVE_BINDTEXTDOMAIN_CODESET bind_textdomain_codeset(PACKAGE, "latin1"); +#endif textdomain(PACKAGE); } }; }; +#endif #include "plppropsFactory.h" #include "plpprops.h" @@ -25,7 +33,9 @@ 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")); } |