mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
10 lines
383 B
Bash
Executable File
10 lines
383 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_' -o locale/messages.po -j -f -
|
|
cd locale
|
|
msgmerge -N quexs.pot messages.po > new.po
|
|
mv new.po quexs.pot
|
|
rm messages.po
|