Search code examples
xcodelocalizationgenstrings

Use genstrings with a folder-structured project for localization


In an iOS Project with folders containing *.m files, similar to packages, one will have to run genstrings -o en.lproj *.m for each folder and match the relative en.lproj path. Is there a command that will do the drill down from the root folder?


Solution

  • You can concatenate all of the *.m files into one file and then call the genstrings on that.

    I.E:

    find . -name "*.m" -exec cat {} >> all.txt \;