From 2fd0261c03ccabb6fa8404067c4e5c881bc8cbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 13 Nov 2007 17:29:46 +0000 Subject: [PATCH] i18n messages for effects. svn path=/trunk/KDE/kdebase/workspace/; revision=736200 --- effects/Messages.sh | 3 +++ kcmkwin/kwincompositing/Messages.sh | 1 + kcmkwin/kwincompositing/main.cpp | 1 + kcmkwin/kwinrules/Messages.sh | 1 + main.cpp | 1 + 5 files changed, 7 insertions(+) create mode 100644 effects/Messages.sh diff --git a/effects/Messages.sh b/effects/Messages.sh new file mode 100644 index 0000000000..761d2aeea6 --- /dev/null +++ b/effects/Messages.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env bash +$EXTRACTRC `find . -name \*.ui` >> rc.cpp || exit 11 +$XGETTEXT `find . -name \*.cpp` -o $podir/kwin_effects.pot diff --git a/kcmkwin/kwincompositing/Messages.sh b/kcmkwin/kwincompositing/Messages.sh index d0646cb751..abdc23d599 100644 --- a/kcmkwin/kwincompositing/Messages.sh +++ b/kcmkwin/kwincompositing/Messages.sh @@ -1,2 +1,3 @@ #! /usr/bin/env bash +$EXTRACTRC *.ui >> rc.cpp || exit 11 $XGETTEXT *.cpp -o $podir/kcmkwincompositing.pot diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index 832b3b22b0..d8450a30fc 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -57,6 +57,7 @@ KWinCompositingConfig::KWinCompositingConfig(QWidget *parent, const QVariantList : KCModule( KWinCompositingConfigFactory::componentData(), parent), mKWinConfig(KSharedConfig::openConfig("kwinrc")) { + KGlobal::locale()->insertCatalog( "kwin_effects" ); ui.setupUi(this); ui.tabWidget->setCurrentIndex(0); ui.statusLabel->hide(); diff --git a/kcmkwin/kwinrules/Messages.sh b/kcmkwin/kwinrules/Messages.sh index 9f61cf879b..79edd38591 100644 --- a/kcmkwin/kwinrules/Messages.sh +++ b/kcmkwin/kwinrules/Messages.sh @@ -1,2 +1,3 @@ #! /usr/bin/env bash +$EXTRACTRC *.ui >> rc.cpp || exit 11 $XGETTEXT *.cpp -o $podir/kcmkwinrules.pot diff --git a/main.cpp b/main.cpp index a485b5fef5..e4b5ee30b5 100644 --- a/main.cpp +++ b/main.cpp @@ -398,6 +398,7 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) KWin::Application a; KWin::SessionManager weAreIndeed; KWin::SessionSaveDoneHelper helper; + KGlobal::locale()->insertCatalog( "kwin_effects" ); fcntl(XConnectionNumber(KWin::display()), F_SETFD, 1);