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

Re: Localization...


  • Subject: Re: Localization...
  • From: Frédéric Testuz <email@hidden>
  • Date: Mon, 3 Nov 2008 19:51:15 +0100


Le 3 nov. 08 à 05:04, Chris Idou a écrit :

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?

You can also tried to launch your application with NSShowNonLocalizedStrings argument. With this argument localizedString... method logs error in the console. See the low part of <file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/MacOSX/Conceptual/BPInternational/Articles/StringsFiles.html >



_______________________________________________

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


References: 
 >Localization... (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: NSTableView problems
  • Next by Date: Key Paths @count and mutablestrings
  • Previous by thread: Re: Localization...
  • Next by thread: Re: Removing 4 pixels
  • Index(es):
    • Date
    • Thread