Deck Trout
Deck Trout

Reputation: 161

how to xgettext with all the file including subdirectories files?

how to xgettext with all the file including subdirectories files? I tried to

xgettext -n *.php 

but it only generates *.po files in current directory without child directories' files. any option needed to recursively do the command?

Upvotes: 2

Views: 1719

Answers (1)

Guido Flohr
Guido Flohr

Reputation: 2340

Try this:

find . -name "*.php" >POTFILES
xgettext -n --files-from=POTFILES

Upvotes: 4

Related Questions