Consolidate all plasma-framework catalogs

This commit is contained in:
Aurélien Gâteau 2014-04-23 10:08:38 +02:00
parent 3a150bb0e7
commit 0efc0572af
4 changed files with 11 additions and 8 deletions

11
src/Messages.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# Invoke the extractrc script on all .ui, .rc, and .kcfg files in the sources.
# The results are stored in a pseudo .cpp file to be picked up by xgettext.
lst=`find . -name \*.rc -o -name \*.ui -o -name \*.kcfg`
if [ -n "$lst" ] ; then
$EXTRACTRC $lst >> rc.cpp
fi
# Run xgettext to extract strings from all source files.
$XGETTEXT `find . -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/libplasma5.pot

View File

@ -1,4 +0,0 @@
#! /usr/bin/env bash
$EXTRACTRC private/*.ui >> rc.cpp
$XGETTEXT `ls *.cpp *.h */*.h */*.cpp | grep -v 'tests/'` -o $podir/libplasma.pot
rm -f *.ui

View File

@ -1,2 +0,0 @@
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/plasmapkg.pot

View File

@ -1,2 +0,0 @@
#! /usr/bin/env bash
$XGETTEXT `find . -name '*.cpp'` -o $podir/plasma_scriptengine_declarative.pot