Recommended Way of Collecting All NSLocalizedStrings from Project?
  • coneybeare October 2011
    I have a (very) large app which contains multiple subprojects and shared files outside of the project directory. I used to generate the strings using a command like this:

    find\
    /Users/[REDACTED]/Projects/[REDACTED]/[REDACTED]-3/UAConstants.h\
    /Users/[REDACTED]/Projects/[REDACTED]/[REDACTED]-3\
    /Users/[REDACTED]/Projects/iPhone/AntiCrack\
    /Users/[REDACTED]/Projects/iPhone/appirater\
    /Users/[REDACTED]/Projects/iPhone/asi-http-request\
    /Users/[REDACTED]/Projects/iPhone/AudioStreamer\
    /Users/[REDACTED]/Projects/iPhone/InAppSettingsKit\
    /Users/[REDACTED]/Projects/iPhone/Satisfaction-remote-component\
    -name "*.[m,mm]" | xargs genstrings -a -o en.lproj

    and so on and so on. The problem is that I have to manually add files to this list and regenerate every time, and every time I am paranoid about forgetting some files and strings when using genstrings. Do you have a recommended way of collecting all these strings for import into Localization Manager? Surely there must be an easier way

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership