Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recursive scan for files with xgettext

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

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

like image 471
ChrJantz Avatar asked Jul 12 '12 11:07

ChrJantz


1 Answers

find . -iname "*.php" | xargs xgettext --from-code=UTF-8 --default-domain=project

This should do the trick.

like image 70
ChrJantz Avatar answered Oct 01 '22 12:10

ChrJantz