Localizing Core Data Properties
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.
精彩评论