SVN 的 Localized.strings 问题

发布于 2024-10-04 10:29:50 字数 220 浏览 0 评论 0原文

这些是我创建 Localized.strings 文件所遵循的步骤。

1)创建一个名为“en.lproj”的文件夹
2)从终端 genstrings -o en.lproj Classes/*.m
运行命令,

它会在“en.lproj”下生成正确的文件。 现在我的问题是如何将该文件添加到我的项目中。我确实拖放了该文件,但它没有给我任何添加到存储库的选项。 我做错了什么吗?

these are the steps i followed to create Localizable.strings file.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪化雨蝶 2024-10-11 10:29:50

我使用的方法是这样的:

  1. 创建要本地化的文件(Localized.strings)
  2. 直接将该文件添加到 Xcode(无 en.lproj 文件夹或任何内容)
  3. 在 Xcode 中选择该文件,右键单击“获取信息”
  4. 常规选项卡,“使文件可本地化”

这样,Xcode 会为您处理文件夹内容,并且我假设也会处理 SCM 管理内容。我个人不喜欢使用 Xcode 进行 SCM,我更喜欢使用外部工具来分离关注点等。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文