Skip to content

Instantly share code, notes, and snippets.

@asifmujteba
Created May 29, 2015 12:06
Show Gist options
  • Save asifmujteba/163b065a0acc2df48686 to your computer and use it in GitHub Desktop.
Save asifmujteba/163b065a0acc2df48686 to your computer and use it in GitHub Desktop.
genstring iOS generate strings for localization
To generate strings from *.m files located in the current folder execute:
$ genstrings -o en.lproj *.m
To generate strings from *.m files located in the current folder + subfolders execute:
$ find . -name \*.m | xargs genstrings -o en.lproj
To generate strings from *.m files located in the current folder + subfolders but excluding Folder1 execute:
$ find . -name \*.m -not -path "./Folder1/*" -print0 | xargs -0 genstrings -o en.lproj -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment