Re: WOResourceManager, opposite of stringForKey

Dev WO <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects% 
> 40anazys.com
>
> This email sent to [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.