Re: Localization
Re: Localization
- Subject: Re: Localization
- From: Michael Gargano <email@hidden>
- Date: Fri, 14 Jan 2011 08:07:13 -0800
- Acceptlanguage: en-US
- Thread-topic: Localization
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Localization (From: Michael Gargano <email@hidden>) |