Extract messages from scripts and scripting module
Messages in scripts are written to kwin_scripts.pot, messages in scripting are written to kwin_scripting.pot. The cataloges are loaded in the configuration interfaces and in main kwin. REVIEW: 108975
This commit is contained in:
parent
650c606e95
commit
898e120be9
5 changed files with 13 additions and 0 deletions
|
@ -89,6 +89,7 @@ KWinCompositingConfig::KWinCompositingConfig(QWidget *parent, const QVariantList
|
|||
QDBusConnection::sessionBus().registerObject("/CompositorSettings", this);
|
||||
new MainAdaptor(this);
|
||||
KGlobal::locale()->insertCatalog("kwin_effects");
|
||||
KGlobal::locale()->insertCatalog("kwin_scripting");
|
||||
ui.setupUi(this);
|
||||
layout()->setMargin(0);
|
||||
layout()->activate();
|
||||
|
|
|
@ -53,6 +53,8 @@ Module::Module(QWidget *parent, const QVariantList &args) :
|
|||
|
||||
about->addAuthor(ki18n("Tamás Krutki"));
|
||||
setAboutData(about);
|
||||
KGlobal::locale()->insertCatalog("kwin_scripts");
|
||||
KGlobal::locale()->insertCatalog("kwin_scripting");
|
||||
|
||||
ui->setupUi(this);
|
||||
ui->ghnsButton->setIcon(KIcon("get-hot-new-stuff"));
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -515,6 +515,8 @@ KDE_EXPORT int kdemain(int argc, char * argv[])
|
|||
KWin::SessionManager weAreIndeed;
|
||||
KWin::SessionSaveDoneHelper helper;
|
||||
KGlobal::locale()->insertCatalog("kwin_effects");
|
||||
KGlobal::locale()->insertCatalog("kwin_scripts");
|
||||
KGlobal::locale()->insertCatalog("kwin_scripting");
|
||||
|
||||
// Announce when KWIN_DIRECT_GL is set for above HACK
|
||||
if (qstrcmp(qgetenv("KWIN_DIRECT_GL"), "1") == 0)
|
||||
|
|
4
scripting/Messages.sh
Normal file
4
scripting/Messages.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /usr/bin/env bash
|
||||
$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
|
||||
$XGETTEXT `find . -name \*.h -o -name \*.cpp` -o $podir/kwin_scripting.pot
|
||||
rm -f rc.cpp
|
4
scripts/Messages.sh
Normal file
4
scripts/Messages.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /usr/bin/env bash
|
||||
$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
|
||||
$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/kwin_scripts.pot
|
||||
rm -f rc.cpp
|
Loading…
Reference in a new issue