#!/bin/bash

mkdir -p tmp
echo '' > tmp/messages.po
echo Generating new pot file...
xgettext -j -c --language=Python --output=tmp/messages.po --keyword=_ --from-code=UTF-8 `find . -name "*.py" | grep -v build` coala
echo Merging with existent pot file...
msgmerge -N locale/coala.pot tmp/messages.po > locale/coala.pot 2> /dev/null
echo Removing temporary files...
#rm -rf tmp
echo Done.
echo
echo Please update the po files accordingly.

#!/bin/bash

mkdir -p tmp
echo '' > tmp/messages.po
echo Generating new pot file...
xgettext -j -c --language=Python --output=tmp/messages.po --keyword=_ --from-code=UTF-8 `find . -name "*.py" | grep -v build` coala
echo Merging with existent pot file...
msgmerge -N locale/coala.pot tmp/messages.po > locale/coala.pot 2> /dev/null
echo Removing temporary files...
rm -rf tmp
echo Done.
echo
echo Please update the po files accordingly.

Remove temporary files after pot generation
i18n: Remove temporary files after pot generation
