• 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
Localization...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localization...


  • Subject: Localization...
  • From: Chris Idou <email@hidden>
  • Date: Sun, 2 Nov 2008 20:04:43 -0800 (PST)

I don't seem to be having much luck getting localization to work. I've got a utf16 strings file in my project called MetaData.strings that contains:

"kMDItemFSLabel" = "color label";


Then in my code...

[[NSBundle bundleForClass:[self class]] localizedStringForKey:@"kMDItemFSLabel" value:@"nothing here" table:@"MetaData"]

MetaData.strings ends up in my English.lproj and get info says it is an English localization. But the code returns "nothing here".

I've also tried:

NSLocalizedStringFromTable(@"kMDItemFSLabel", @"MetaData", @"kMDItemFSLabel")

But that doesn't work either. Am I missing something?





_______________________________________________

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

  • Follow-Ups:
    • Re: Localization...
      • From: Frédéric Testuz <email@hidden>
    • Re: Localization...
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: Signature Recognition in Cocoa
  • Next by Date: Re: Localization...
  • Previous by thread: Re: Signature Recognition in Cocoa
  • Next by thread: Re: Localization...
  • Index(es):
    • Date
    • Thread