File indexing completed on 2024-04-14 14:08:47

0001 #!/bin/sh
0002 #=============================================================================
0003 # SPDX-FileCopyrightText: 2014 Bruno Coudoin <bruno.coudoin@gcompris.net>
0004 #
0005 # SPDX-License-Identifier: GPL-3.0-or-later
0006 #=============================================================================
0007 # Extract strings from all source files.
0008 # EXTRACT_TR_STRINGS extracts strings with lupdate and convert them to .pot with
0009 # lconvert.
0010 $EXTRACT_TR_STRINGS `find . \
0011                           -name \*.cpp -o \
0012                           -name \*.h -o \
0013                           -name \*.qml -not -path "./activities/template/*" -o \
0014                           -name \*.js -not -path "./activities/template/*"` \
0015                     -o $podir/gcompris_qt.pot
0016 
0017 # create a pot for the voices text to keep them up-to-date with the audio files
0018 find . -name ActivityInfo.qml -not -path "*template*" -exec awk -f activityintro2msg.awk {} \; > rc.cpp
0019 $XGETTEXT rc.cpp -o $podir/gcompris_voices.pot
0020 rm rc.cpp
0021