3
# $1: kundo2_aware_xgettext.sh
8
# source the kundo2_aware_xgettext.sh script
11
# setup environment variables for kundo2_aware_xgettext.sh
16
# get common parameters
18
# kundo2_aware_xgettext.sh wants this in one variable
19
XGETTEXT="$XGETTEXT_PROGRAM $XGETTEXT_FLAGS"
21
potfile="test_i18nc.pot"
22
cppfile="test_i18nc.cpp"
24
kundo2_aware_xgettext "$potfile" "$cppfile"
27
if test ! -e "$podir/$potfile"; then
28
echo "FAIL: pot file not created"
31
if test 0 -ne `grep qtundo-format "$podir/$potfile"|wc -l`; then
32
echo "FAIL: there should be 0 qtundo-format strings"
35
if test 2 -ne `grep msgid "$podir/$potfile"|wc -l`; then
36
echo "FAIL: there should be 2 message strings"