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);