• 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: WOResourceManager, opposite of stringForKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOResourceManager, opposite of stringForKey


  • Subject: Re: WOResourceManager, opposite of stringForKey
  • From: Dev WO <email@hidden>
  • Date: Mon, 3 Jul 2006 15:53:56 +0200

Hi guys,
I'm probably missing something obvious, but I just don't see it...
Is there any simple way to get a key from a string? assuming the string will be localized using the .plist method.
I know I can compare the string I get with the string for each language using stringForKey, but I though there's a convenient way to get the key directly.


any pointer is welcome;)

Xavier


Hi guys,
I've been working on a new version of a website, with some parts that will be multilingual.
After reading about that, I decided to go the .strings way, with a localized .strings file (as the site isn't really dynamic).
It will be mostly DirectAction based.


So here's my question:
How can I access a key in my .strings file based on the value I got?
I mean, I know how to get the value from a key using WOResourceManager, but I'd like to ba able to request the opposite: the key based on (a localized) value.
That way I could make my DA more easier to maintain and a lot more smaller than explicitly write all the possible case in every language available.


I've red the WOResourceManager API, but without success.

Thanks for your help, have a nice sunday;)

Xavier

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


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: WOResourceManager, opposite of stringForKey
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Locations of resources ye again
  • Next by Date: Re: EOF Inheritance, Relationships between super class and subclass
  • Previous by thread: Re: Locations of resources ye again
  • Next by thread: Re: WOResourceManager, opposite of stringForKey
  • Index(es):
    • Date
    • Thread