Localizing a Managed Object Model
Localizing a Managed Object Model
- Subject: Localizing a Managed Object Model
- From: Jim Correia <email@hidden>
- Date: Wed, 12 Oct 2005 17:33:36 -0400
The documentation says:
The easiest way to localize a model is to create a corresponding
strings
fileāthe strings file name is the same as the model file name,
but with
a .strings rather than a .xcdatamodel extension (for example, for a
model file named MyDocumentModel.xcdatamodel the corresponding
strings
file is MyDocumentModel.strings).
I've tried doing just that with both the CoreData Application and
CoreData Document Based Application templates, and -
[NSManagedObjectModel localizationDictionary] always returns nil.
I'm not averse to wiring things up by hand if necessary. Have I done
something wrong? (As always, I'm happy to write bugs against the
frameworks or docs as necessary.)
Jim
Here are the bundle layouts:
MyTestCDApp.app:
Contents:
Info.plist
MacOS:
MyTestCDApp
PkgInfo
Resources:
English.lproj:
InfoPlist.strings
MainMenu.nib:
classes.nib
info.nib
keyedobjects.nib
MyTestCDApp_DataModel.strings
MyTestCDApp_DataModel.mom
MyTestCDAppAppDelegate.h
MyCDTestDocumentBasedApp.app:
Contents:
Info.plist
MacOS:
MyCDTestDocumentBasedApp
PkgInfo
Resources:
English.lproj:
Credits.rtf
InfoPlist.strings
MainMenu.nib:
classes.nib
info.nib
keyedobjects.nib
MyDocument.nib:
classes.nib
info.nib
keyedobjects.nib
MyDocument.strings
MyDocument.mom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden