Re: Programmatically Accessing Core Data Localization Strings
Re: Programmatically Accessing Core Data Localization Strings
- Subject: Re: Programmatically Accessing Core Data Localization Strings
- From: Sebastian Celis <email@hidden>
- Date: Mon, 22 Jun 2009 22:33:40 -0500
Perfect! Thanks!
- Sebastian
On Mon, Jun 22, 2009 at 9:36 PM, Nick Zitzmann<email@hidden> wrote:
>
> On Jun 22, 2009, at 7:56 PM, Sebastian Celis wrote:
>
>> I have a strings file defined for my Core Data model. As such, my
>> Data.xcdatamodel file has a corresponding DataModel.strings file. This
>> seems to work great for auto-generated messages, but now I have a need
>> to access these localized strings programmatically. NSLocalizedString
>> does not seem to find them, and the localizationDictionary property of
>> my NSManagedObjectModel is often nil (the documentation states that
>> this is loaded lazily).
>>
>> How can I go about localizing the names of my properties and entities
>> from code?
>
>
> Use NSLocalizedStringFromTable() with "DataModel" as the name of the table.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden