开发者

NSLocalizedString with empty comment?

i found this good example to use NSLocalizedString : What is th开发者_如何学Goe second parameter of NSLocalizedString()?

NSLocalizedString(@"Save",@"Title of the Save button in the theme saving dialog");

.

/* Title of the Save button in the theme saving dialog */
"Save" = "Save";

But what if the comment in NSLocalizedString is empty ?what does is mean? Will it automatically know where to find the translated word in localize.strings?

Thanks


The comment is reserved for the genstrings tool to help someone, who may or may not be technical, translate your localized strings into new languages.


The first parameter is the key into localizable.strings. The second parameter is a comment meant to assist in translation. It won't effect the behavior of the application at all, so it doesn't strictly matter if it's empty or nil.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜