开发者

NSLocalizedString with empty comment?

开发者 https://www.devze.com 2023-04-05 05:29 出处:网络
i found this good example to use NSLocalizedString : What is th开发者_如何学Goe second parameter of NSLocalizedString()?

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

精彩评论

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

关注公众号