From 12f47630333ee76b817296c45454f6873015991e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 22 Jul 2004 11:48:03 +0000 Subject: [PATCH] Oops. KWin decoration plugins had no messages although they contain few i18n strings. svn path=/trunk/kdebase/kwin/; revision=331733 --- clients/b2/Makefile.am | 2 ++ clients/default/Makefile.am | 3 +++ clients/keramik/Makefile.am | 2 ++ clients/kwmtheme/Makefile.am | 3 +++ clients/laptop/Makefile.am | 2 ++ clients/modernsystem/Makefile.am | 2 ++ clients/quartz/Makefile.am | 2 ++ clients/redmond/Makefile.am | 2 ++ clients/web/Makefile.am | 3 +++ lib/kdecoration_plugins_p.cpp | 4 ++++ 10 files changed, 25 insertions(+) diff --git a/clients/b2/Makefile.am b/clients/b2/Makefile.am index e475fd04c2..01fd92f986 100644 --- a/clients/b2/Makefile.am +++ b/clients/b2/Makefile.am @@ -18,6 +18,8 @@ lnk_DATA = b2.desktop EXTRA_DIST = $(lnk_DATA) +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_b2.pot ###KMAKE-start (don't edit or delete this block) diff --git a/clients/default/Makefile.am b/clients/default/Makefile.am index c9f4da72ed..ea48fa94ec 100644 --- a/clients/default/Makefile.am +++ b/clients/default/Makefile.am @@ -11,3 +11,6 @@ kwin3_default_la_LIBADD = $(LIB_KDECORE) ../../lib/libkdecorations.la METASOURCES = AUTO noinst_HEADERS = kdedefault.h + +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_default.pot diff --git a/clients/keramik/Makefile.am b/clients/keramik/Makefile.am index d5969643c2..8ef1b5973e 100644 --- a/clients/keramik/Makefile.am +++ b/clients/keramik/Makefile.am @@ -42,3 +42,5 @@ tiles.h: embedtool keramik.lo: tiles.h +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_keramik.pot diff --git a/clients/kwmtheme/Makefile.am b/clients/kwmtheme/Makefile.am index 74b7292ee9..1600878740 100644 --- a/clients/kwmtheme/Makefile.am +++ b/clients/kwmtheme/Makefile.am @@ -12,3 +12,6 @@ noinst_HEADERS = kwmthemeclient.h lnkdir = $(kde_datadir)/kwin lnk_DATA = kwmtheme.desktop + +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_kwmtheme.pot diff --git a/clients/laptop/Makefile.am b/clients/laptop/Makefile.am index eb870720aa..41f2a8d4c8 100644 --- a/clients/laptop/Makefile.am +++ b/clients/laptop/Makefile.am @@ -15,3 +15,5 @@ lnk_DATA = laptop.desktop EXTRA_DIST = $(lnk_DATA) +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_laptop.pot diff --git a/clients/modernsystem/Makefile.am b/clients/modernsystem/Makefile.am index 75e0249f8e..8be1c05ae7 100644 --- a/clients/modernsystem/Makefile.am +++ b/clients/modernsystem/Makefile.am @@ -17,3 +17,5 @@ lnk_DATA = modernsystem.desktop EXTRA_DIST = $(lnk_DATA) +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_modernsys.pot diff --git a/clients/quartz/Makefile.am b/clients/quartz/Makefile.am index 69e6cc0109..7c2f276466 100644 --- a/clients/quartz/Makefile.am +++ b/clients/quartz/Makefile.am @@ -17,6 +17,8 @@ lnk_DATA = quartz.desktop EXTRA_DIST = $(lnk_DATA) +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_quartz.pot ###KMAKE-start (don't edit or delete this block) diff --git a/clients/redmond/Makefile.am b/clients/redmond/Makefile.am index 85d0236d20..cde784dd8b 100644 --- a/clients/redmond/Makefile.am +++ b/clients/redmond/Makefile.am @@ -15,3 +15,5 @@ lnk_DATA = redmond.desktop EXTRA_DIST = $(lnk_DATA) +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_redmond.pot diff --git a/clients/web/Makefile.am b/clients/web/Makefile.am index 3eb4741814..9bd0f8555f 100644 --- a/clients/web/Makefile.am +++ b/clients/web/Makefile.am @@ -28,3 +28,6 @@ METASOURCES = AUTO linkdir = $(kde_datadir)/kwin/ link_DATA = web.desktop EXTRA_DIST = $(link_DATA) + +messages: + $(XGETTEXT) *.cpp -o $(podir)/kwin_web.pot diff --git a/lib/kdecoration_plugins_p.cpp b/lib/kdecoration_plugins_p.cpp index b390fc204a..48255e7747 100644 --- a/lib/kdecoration_plugins_p.cpp +++ b/lib/kdecoration_plugins_p.cpp @@ -165,6 +165,10 @@ bool KDecorationPlugins::loadPlugin( QString nameStr ) pluginStr = nameStr; + QString catalogue = nameStr; + catalogue.replace( "kwin3_", "kwin_" ); + KGlobal::locale()->insertCatalogue( catalogue ); + old_library = oldLibrary; // save for delayed destroying old_fact = oldFactory;