1

我已经在目标 c 中完成了一个项目,问题是我有 10 多个 XIB 文件,每个文件都有很多标签,按钮 ecc。

我正在用德语开发,我想制作一个英文版本,我怎样才能以一种简单有效的方式做到这一点?全部使用 NSLocalizableString?如果可能,我想避免复制每个 xib。

感谢您的任何建议。

4

2 回答 2

2

Matt Gallagher has a great article on internationalization.

Bottom line: Produce a ".strings" file with ibtool; Use ".strings" files for internationalizations, and NSLocalizedString to load them.

Use the tools luke!

于 2011-05-05T19:14:35.777 回答
0

如果您在 XIB 中填充这些标签、按钮等,则必须为每种语言创建新的 XIB。

于 2011-05-05T17:59:11.803 回答