echo "-- Building .pot file and updating translations ..."
POT=guayadeque.pot

cd src
find . -name "*.cpp" | xargs xgettext -d guayadeque -o ${POT} -C -k_ -kwxPLURAL:1,2
cat ../po/external.pot >>${POT}
mv ${POT} ../po

cd ../po
# The .pot keeps its "#: file:line" comments (it is the source reference) but the .po files do not.
find . -name "*.po" | xargs -I{} msgmerge -U {} --backup=none --no-location ${POT} 2>/dev/null

cd ..
