• 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: Localizable.strings in frameworks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizable.strings in frameworks?


  • Subject: Re: Localizable.strings in frameworks?
  • From: Florent Pillet <email@hidden>
  • Date: Tue, 26 Sep 2006 16:02:06 +0200

For these needs, I use to use a macro in my code that's defined as:

#define LOCALIZED_STRING(key) [[NSBundle bundleForClass:[self class]] localizedStringForKey:(key) value:@"" table:nil]

(sorry if formatting splits the line).

And I always use this macro to get localized strings when writing code in a framework. This way, you always get access to the localized strings file of the current framework.

HTH,
Florent

email@hidden wrote:
I have an app that I am localizing. This app contains a private framework. In the framework is a .nib file, localized for German and English. So far so good! But what about the frameworks localized.string file? Do I put the framework text to be localized in the app's localized.strings file, or does the framework contain the localized.strings file? I tried using a localized.strings file in the frameworks, but it did not work as expected.
Any help would be appreciated!
-Bill


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

-- Florent Pillet http://www.florentpillet.com Software consultant - Mac OS X, Palm OS, Windows Mobile Skype callto://florent.pillet _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Localizable.strings in frameworks? (From: email@hidden)

  • Prev by Date: Re: How to implement an Xcode-style hierarchical file browser
  • Next by Date: Notification when changes occur to an array?
  • Previous by thread: Re: Localizable.strings in frameworks?
  • Next by thread: Getting an NSManagedObject just added through an NSArrayController
  • Index(es):
    • Date
    • Thread