
I’d like to share my favorite xgettext command to scan recursively the entire folder and its sub folders.
xgettext -o ../script.pot --from-code=utf-8 --keyword=_t --width=300 --no-wrap $(find . -name "*.php") |
You may want to remove unnecessary parameters like –keyword=_t (I use my own _t() instead of _()), –width=300 really not necessary, and –no-wrap, useful for me to write my own .po file parse. In my case, I need to convert it in array.
