How can I compile a .po file using xgettext with PHP files with a single command recursively?
.po
My PHP files exist in a hierarchy, and the straight xget
xget
This is the solution I found for recursive search on Mac:
xgettext -o translations/messages.pot --keyword=gettext `find . -name "*.php"`
Generates entries for all uses of method gettext in files whose extension is php, including subfolders and inserts them in translations/messages.pot .