Commit 50cb07be authored by Boudewijn Rempt's avatar Boudewijn Rempt

Rename calligra_xgettext to krita_xgettext

parent 53c28ccc
#! /bin/sh
source ../calligra_xgettext.sh
source ../krita_xgettext.sh
$EXTRACTRC `find . -name \*.ui | grep -v '/tests/'` >> rc.cpp
RCFILES=`find . -name \*.rc \
......@@ -11,5 +11,5 @@ RCFILES=`find . -name \*.rc \
$EXTRACTRC $RCFILES >> rc.cpp
perl extracti18n.pl > i18ndata
# ignore sdk/templates since it contains templates for use a future plugins, none of the strings there will ever be seen by any user
calligra_xgettext krita.pot i18ndata rc.cpp `find . -name \*.cc -o -name \*.h -o -name \*.cpp | grep -v '/tests/' | grep -v './sdk/templates'`
krita_xgettext krita.pot i18ndata rc.cpp `find . -name \*.cc -o -name \*.h -o -name \*.cpp | grep -v '/tests/' | grep -v './sdk/templates'`
rm -f i18ndata rc.cpp
#
# Helper function for extracting translatable messages from Calligra source code.
# Usage: calligra_xgettext <pot-filename-without-path> <source-files-list>
# Helper function for extracting translatable messages from krita source code.
# Usage: krita_xgettext <pot-filename-without-path> <source-files-list>
# If there are no messages or the <source-files-list> is empty, the pot file is deleted.
#
# Example usage that creates $podir/myapp.pot file:
# calligra_xgettext myapp.pot `find . -name \*.cpp -o -name \*.h`
# krita_xgettext myapp.pot `find . -name \*.cpp -o -name \*.h`
#
function calligra_xgettext() {
function krita_xgettext() {
POTFILE="$podir/$1"
shift
if test -n "$*"; then
calligra_xgettext_internal $* | tee "${POTFILE}" | tail -n1 | grep "^msgstr \"\"\$" > /dev/null \
krita_xgettext_internal $* | tee "${POTFILE}" | tail -n1 | grep "^msgstr \"\"\$" > /dev/null \
|| rm -f "${POTFILE}" 2> /dev/null
fi
}
function calligra_xgettext_internal() {
function krita_xgettext_internal() {
SRC_FILES="$*"
POT_PART_NORMAL="`mktemp $podir/_normal_XXXXXXXX.pot`"
POT_PART_QUNDOFORMAT="`mktemp $podir/_qundoformat_XXXXXXXX.pot`"
......
#! /bin/sh
source ../calligra_xgettext.sh
source ../krita_xgettext.sh
LIST=`find . \( -name \*.ui -o -name \*.rc \) -type f -print | grep -v -e '/\.'`
$EXTRACTRC $LIST >> rc.cpp
LIST=`find . \( -name \*.cpp -o -name \*.cc -o -name \*.h \) -type f -print | grep -v '/tests/' | grep -v -e '/\.'`
calligra_xgettext kritalibs.pot $LIST
krita_xgettext kritalibs.pot $LIST
rm -f rc.cpp
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
$EXTRACTRC *.ui >> rc.cpp
calligra_xgettext krita_shape_artistictext.pot *.cpp *.h
krita_xgettext krita_shape_artistictext.pot *.cpp *.h
rm -f rc.cpp
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
calligra_xgettext kritacolorspaces.pot `find . -name \*.cpp -o -name \*.h`
krita_xgettext kritacolorspaces.pot `find . -name \*.cpp -o -name \*.h`
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
$EXTRACTRC `find . -name \*.ui` >> rc.cpp
calligra_xgettext krita_flaketools.pot *.cpp */*.cpp
krita_xgettext krita_flaketools.pot *.cpp */*.cpp
rm -f rc.cpp
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
calligra_xgettext krita-dockers.pot `find . -name \*.cpp`
krita_xgettext krita-dockers.pot `find . -name \*.cpp`
#! /bin/sh
source ../../../calligra_xgettext.sh
source ../../../krita_xgettext.sh
calligra_xgettext kritafiltereffects.pot `find . -name \*.cpp -o -name \*.h`
krita_xgettext kritafiltereffects.pot `find . -name \*.cpp -o -name \*.h`
#! /bin/sh
source ../../../calligra_xgettext.sh
source ../../../krita_xgettext.sh
calligra_xgettext krita_karbontools.pot `find . -name \*.cpp -o -name \*.h`
krita_xgettext krita_karbontools.pot `find . -name \*.cpp -o -name \*.h`
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
$EXTRACTRC `find . -name \*.ui` >> rc.cpp || exit 11
calligra_xgettext krita_shape_paths.pot `find . -name \*.cpp -o -name \*.cc`
krita_xgettext krita_shape_paths.pot `find . -name \*.cpp -o -name \*.cc`
rm -f rc.cpp
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
$EXTRACTRC `find . -name \*.ui` >> rc.cpp || exit 11
calligra_xgettext krita_shape_text.pot `find . -name \*.cpp`
krita_xgettext krita_shape_text.pot `find . -name \*.cpp`
rm -f rc.cpp
#! /bin/sh
source ../../calligra_xgettext.sh
source ../../krita_xgettext.sh
calligra_xgettext krita_shape_vector.pot *.cpp
krita_xgettext krita_shape_vector.pot *.cpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment