2

I want to generated localizable strings for all .m files in my project. However they're not all dumped in the Class folder, they're in several directories (many of them).

What's the best way to parse the entire tree and generate the strings to localized using genstrings command?

amok
  • 1,736
  • 4
  • 20
  • 41
  • A duplicate of http://stackoverflow.com/questions/2744401/how-to-use-genstrings-across-multiple-directories – Roy Sharon Mar 10 '12 at 05:30

1 Answers1

8

From the project directory:

find . -name "*.m" | xargs genstrings <any options go here>

presumably the easiest way. xargs will put the filenames at the end of the command.

mvds
  • 45,755
  • 8
  • 102
  • 111