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

Re: Localization of initWithWindowNibName


  • Subject: Re: Localization of initWithWindowNibName
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 2 Oct 2003 14:52:18 +0200

At 23:42 Uhr -0400 01.10.2003, Steve Sheets wrote:
I am opening a window using initWithWindowNibName. I had assumed that Cocoa used a localized version of the file name, if I have one in my bundle. When the apps main nib file is open, the application used the correct localized one. However, when I test my code, this is not the case. Do you have to do something special in this instance? Perhaps use initWithWindowNibPath instead with the correct path, using the main bundle for the localized version of the nib file? Or am I just not doing something correctly, and should be able to use initWithWindowNibName to open my window.

To correctly localize a NIB or .strings file, control-click (or right-click) its entry in Project Builder and choose "Make Localizable". That will move it into an English.lproj folder. Now you can copy that folder and rename it to Minbari.lproj or whatever language you're translating to. Then just translate the files in that folder, and depending on the user's current language settings, it should automagically pick the right one.

Easy, isn't it? ;-)
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Localization of initWithWindowNibName (From: Steve Sheets <email@hidden>)

  • Prev by Date: Recognizes color in an image
  • Next by Date: Re: Recognizes color in an image
  • Previous by thread: Re: Localization of initWithWindowNibName
  • Next by thread: Paragraph style attribute in cell?
  • Index(es):
    • Date
    • Thread