Recursively scan files with xgettext

I need to recursively scan all folders from a project for xgettext strings. How can this be done using xgettext in linux?

My current options are: --default-domain = project -k_

+6
source share
1 answer
find . -iname "*.php" | xargs xgettext --from-code=UTF-8 --default-domain=project 

That should do the trick.

+17
source

Source: https://habr.com/ru/post/920316/


All Articles