PO template generation script

This commit is contained in:
Artem Vorotnikov 2015-06-16 17:04:30 +03:00
parent fff29e804a
commit 9074495c35

11
pot_generator.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# This script automatically updates translation template from
# the source code of XQF
#
POT=po/xqf.pot
VERSION=$(git describe --abbrev=0 --tags)
find ./ -name '*.c' -o -name '*.ui' -o -name 'xqf.desktop.in' | sort | xgettext \
\--from-code=UTF-8 --package-name="XQF" --copyright-holder="XQF Team" --msgid-bugs-address="https://github.com/xqf/xqf/issues" --no-location --package-version="${VERSION}" -o ${POT} -k_ -k__ -kCG_TranslateString -ktrap_TranslateString -kTRANSLATE -f -