2

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?

Deck Trout
  • 161
  • 11
  • 1
    Maybe is this the same question as http://stackoverflow.com/questions/1864233/recusive-xgettext ? – akky Jul 28 '13 at 09:36

1 Answers1

4

Try this:

find . -name "*.php" >POTFILES
xgettext -n --files-from=POTFILES
Guido Flohr
  • 1,871
  • 15
  • 28