these are the steps i followed to create Localizable.strings fi开发者_C百科le.
1) created a folder called "en.lproj"
2) ran the command from terminal genstrings -o en.lproj Classes/*.mit generates correct file under "en.lproj". now my question is how do i add that file to my project. i did drag n drop that file but its not giving me any option to add to repository. am i doing something wrong.
The method I use goes something like this:
- Create the file to be localized (Localizable.strings)
- Add that file to Xcode directly (no en.lproj folder or anything)
- Select that file in Xcode, right click, "Get Info"
- General tab, "Make file localizable"
This way, Xcode takes care of the folder stuff for you, and I would assume take care of the SCM management stuff too. I personally don't like to use Xcode for SCM, I prefer using an external tool, for separation of concerns, etc.
精彩评论