From 0f1ffc4064c073854fa51949cb8e9c44cf8885ee Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sat, 24 Mar 2001 17:35:57 +0000 Subject: NLS fixes, kpsion config --- kde2/plugins/plppropsFactory.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kde2/plugins') 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 +#endif + +#ifdef ENABLE_NLS namespace LIBPLP { extern "C" { #include 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")); } -- cgit v1.2.3