Okay,

So, for future reference (for myself mostly, I guess) 
ERXLocalizer.currentLocalizer().takeValueForKey() works fine.  I'm not sure 
what these other methods do, but it's not what I want.

-Mike

On Jan 11, 2011, at 11:38 AM, Michael Gargano wrote:

Hi all,

I'm having a issue with string localization

I have English.lproj and Spanish.lproj folders in my Resources directory with a 
Localizable.strings file in each (both UTF-8).  The files look like this....

{
"loginname" = {
"test" = "Test";
};
}

{
"loginname" = {
"test" = "Prueba";
};
}

Now in my code I'm calling the following...

ERXLocalizer.currentLocalizer().localizedStringForKey("loginname.test");

I also tried...

ERXStringUtilities.localizedStringForKey("loginname.test");

I get nothing but nulls back.  If I get rid of the dictionary, it works fine.  
According to the JavaDoc in ERXLocalizer it appears that this should work.  
Suggestions?

Thanks.
-Mike

<ATT00001..txt>

 _______________________________________________
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/archive%40mail-archive.com

This email sent to [email protected]
  • Localization Michael Gargano
    • Re: Localization Michael Gargano

Reply via email to