Figure out Messages.sh after code refactoring

KDED is translated again
Rename the core's pot to kdeconnect-core.pot and make sure the library
loads the catalog when it's linked to.
Provide a separate translations file for all the plugins, together.

REVIEW: 118774
This commit is contained in:
Aleix Pol 2014-06-17 18:44:46 +02:00
parent 43267c74cc
commit 43a24ac12e
4 changed files with 13 additions and 8 deletions

View file

@ -1,10 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
$EXTRACTRC `find -name '*.ui' -o -name '*.rc'` >> rc.cpp $EXTRACTRC `find . -name '*.ui' -o -name '*.rc'` >> rc.cpp
$XGETTEXT rc.cpp -o $podir/kdeconnect-kded.pot $XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-core.pot
rm -f rc.cpp
#.cpp (-j passed to merge into existing file)
$XGETTEXT `find . -name '*.cpp'` -j -o $podir/kdeconnect-kded.pot
#.desktop and .notifyrc files doesn't need to be included here

View file

@ -41,6 +41,9 @@
#include "backends/devicelink.h" #include "backends/devicelink.h"
#include "backends/linkprovider.h" #include "backends/linkprovider.h"
static const KCatalogLoader loader("kdeconnect-core");
static const KCatalogLoader loaderPlugins("kdeconnect-plugins");
struct DaemonPrivate struct DaemonPrivate
{ {
//Different ways to find devices and connect to them //Different ways to find devices and connect to them

4
kded/Messages.sh Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
$EXTRACTRC `find . -name '*.ui' -o -name '*.rc'` >> rc.cpp
$XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-kded.pot

4
plugins/Messages.sh Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
$EXTRACTRC `find . -name '*.ui' -o -name '*.rc'` >> rc.cpp
$XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-plugins.pot