in manual there are a option -D for parse directory but when i do `xgettext -D /home/cawa/www/zf2/' i have en error the input file is missing?
The answer was
find /home/cawa/www/deploy/module/Nav/ -type f \( -name '*.php' -or -name '*.phtml' \) -print > list
xgettext --files-from=list --language=PHP -j messages.po
You could use this cmd to recursively get all files in a directory.
find . -iname "*.py" | xargs xgettext --from-code utf-8 -o messages.pot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With