【发布时间】:2014-05-08 01:43:48
【问题描述】:
我想在我的 storyboard.strings 文件中添加 cmets,以便翻译人员对他们正在翻译的内容有所了解。
当我在代码中使用NSLocalizedString 时,我可以像这样使用第二个参数:
NSLocalizedString(@"OK", @"the button you click when things are OK");
得到一个看起来像的评论
/* the button you click when things are OK */
"OK" = "OK";
这确实有助于人们翻译内容。当字符串看起来像这样时,要知道上下文要困难得多:
/* Class = "IBUIButton"; normalTitle = "Sign in"; ObjectID = "3R1-1d-v0R"; */
"3R1-1d-v0R.normalTitle" = "OK";
我该怎么办?理想情况下,我想在情节提要中添加某种注释,以便输出到字符串文件。有什么办法吗?
【问题讨论】:
-
如果不可能,您应该考虑在bugreport.apple.com提交增强请求
标签: ios xcode internationalization xcode-storyboard localizable.strings