2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00
Files
CATI_Tool/locale/updatepo.sh
2015-09-07 11:53:59 +10:00

10 lines
399 B
Bash
Executable File

#!/bin/bash
#Source: http://stackoverflow.com/questions/7496156/gettext-how-to-update-po-and-pot-files-after-the-source-is-modified
echo '' > messages.po # xgettext needs that file, and we need it empty
cd ..
find . -type f -iname "*.php" | xgettext --keyword='T_' --keyword='TQ_' -o locale/messages.po -j -f -
cd locale
msgmerge -N quexs.pot messages.po > new.po
mv new.po quexs.pot
rm messages.po