开发者

Localizable.strings issue with SVN

开发者 https://www.devze.com 2023-01-27 00:29 出处:网络
these are the steps i followed to create Localizable.strings fi开发者_C百科le. 1) created a folder called \"en.lproj\"

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/*.m

it 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:

  1. Create the file to be localized (Localizable.strings)
  2. Add that file to Xcode directly (no en.lproj folder or anything)
  3. Select that file in Xcode, right click, "Get Info"
  4. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号