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:
parent
43267c74cc
commit
43a24ac12e
4 changed files with 13 additions and 8 deletions
|
@ -1,10 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
$EXTRACTRC `find -name '*.ui' -o -name '*.rc'` >> rc.cpp
|
||||
$XGETTEXT rc.cpp -o $podir/kdeconnect-kded.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
|
||||
$EXTRACTRC `find . -name '*.ui' -o -name '*.rc'` >> rc.cpp
|
||||
$XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-core.pot
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
#include "backends/devicelink.h"
|
||||
#include "backends/linkprovider.h"
|
||||
|
||||
static const KCatalogLoader loader("kdeconnect-core");
|
||||
static const KCatalogLoader loaderPlugins("kdeconnect-plugins");
|
||||
|
||||
struct DaemonPrivate
|
||||
{
|
||||
//Different ways to find devices and connect to them
|
||||
|
|
4
kded/Messages.sh
Normal file
4
kded/Messages.sh
Normal 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
4
plugins/Messages.sh
Normal 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
|
Loading…
Reference in a new issue