• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Localizing validation error strings with Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizing validation error strings with Core Data


  • Subject: Re: Localizing validation error strings with Core Data
  • From: email@hidden
  • Date: Mon, 11 Jun 2007 19:49:01 +0200

Hello Dave,

That document describes only how to change the error message by programming and that is not what my question is about. The documentation of NSManagedObjectModel indicates that certain kinds of error can be localized very easily by adding these ErrorString descriptions to the proper resource. My experiments show that I do not understand the documentation because it doesn't work for me the way I envision it to work. This always used to be a lot of custom work in EOF so I was hoping that the guys whose roots are in that technology had finally solved it in a generic way for CoreData.
Maybe other people have gotten it to work and would like to lift the curtain for me?


Annard

On 11 Jun 2007, at 17:20, Dave Fernandes wrote:
This is covered in the NSPersistentDocument Core Data Tutorial - at least it is covered for NSPersistentDocument objects. Is that where you have the problem?

On Jun 11, 2007, at 11:01 AM, email@hidden wrote:

Hello there,

It seems to be difficult to localize validation error strings using the built-in mechanism of Core Data. I have succeeded to localize the entity and attribute names by creating the Localizable.strings file with the correct entries. But when I try to do this for the error strings, it doesn't seem to work.

Here's an example:

"Property/name" = "Name";
"ErrorString/name is invalid" = "Name has to start with a letter";

I will see "Name is invalid" as the error message, but not the localized error message. The documentation is not very clear on this subject and my experiments are so far not successful.

Any help is appreciated!

Annard
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40utoronto.ca


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Localizing validation error strings with Core Data (From: email@hidden)
 >Re: Localizing validation error strings with Core Data (From: Dave Fernandes <email@hidden>)

  • Prev by Date: Re: Client Development Question
  • Next by Date: Re: NSImage Info
  • Previous by thread: Re: Localizing validation error strings with Core Data
  • Next by thread: Re: Localizing validation error strings with Core Data
  • Index(es):
    • Date
    • Thread