开发者

Localizing Core Data Properties

开发者 https://www.devze.com 2023-01-24 03:57 出处:网络
I\'m trying to localize my Core Data model in order to display better error messages. I followed the instructions on http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Art

I'm trying to localize my Core Data model in order to display better error messages. I followed the instructions on http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOM.html without success.

My model file is v8.xcdatamodel, so my strings file is v8Mod开发者_Python百科el.string. I want to have the property "name" displayed as "Name". So I added the line

"Property/name" = "Name";

to the strings file. But it just does nothing when an error message is displayed. Any ideas what I missed?

thanks, Martin


Your strings file should be v8Model.strings, but maybe that's just a typo in your question. Notice also that .strings files must be saved in UTF-16 encoding, as documented here.

The .strings file should be saved in the appropriate localization folder, such as en.lproj.

0

精彩评论

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