• 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: Localization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Hudson and frameworks reference
  • Next by Date: mutually exclusive 1-to-0 or 1 relationship modeling
  • Previous by thread: Localization
  • Next by thread: WOWODC 2011: call for presenters and sponsors
  • Index(es):
    • Date
    • Thread