Skip to content

Instantly share code, notes, and snippets.

@sonsongithub
Created May 29, 2012 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonsongithub/2822231 to your computer and use it in GitHub Desktop.
Save sonsongithub/2822231 to your computer and use it in GitHub Desktop.
Xcode "Run script" sample for auto localizing Storyboard files.
# make iPhone's storyboard file for Japanese
ibtool --generate-stringsfile $SRCROOT/Resources/Japanese.lproj/MainStoryboard_iPhone.storyboard.string --import-strings-file $SRCROOT/Resources/Japanese.lproj/MainStoryboard_iPhone.storyboard.string $SRCROOT/Resources/English.lproj/MainStoryboard_iPhone.storyboard
ibtool --write $SRCROOT/Resources/Japanese.lproj/MainStoryboard_iPhone.storyboard -d $SRCROOT/Resources/Japanese.lproj/MainStoryboard_iPhone.storyboard.string $SRCROOT/Resources/English.lproj/MainStoryboard_iPhone.storyboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment