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

Localization


  • Subject: Localization
  • From: Erwin <email@hidden>
  • Date: Tue, 10 Aug 2004 16:54:52 +0200

Hey all European readers...  progressing toward WO master mind, I feel
trapped with the unavoidable 'cultural gap' across the Atlantic.....
language and money formatting !

1- I am using a localized dictionary setup as following :

		NSArray languageArray = new NSArray(new Object[]
{"Spanish","English"});
         byte[] pListBytes =
rm.bytesForResourceNamed("MyDictionary.plist", null, languageArray);
         NSData pListData = new NSData(pListBytes);
         _lookupDict =
(NSDictionary)NSPropertyListSerialization.propertyListFromData(pListData
, "MacRoman");

In my Resources folder , I have the 2 versions , English and Spanish
key-value entries)
MyDictionary.plist
	English
	Spanish

But when I am testing the webapp with an English  Safari user, I always
get the French dictionary labels, unless I change the language order in
the languageArray. In this case, I always get the English version, even
if I switch to a Spanish user...
In fact I cannot have a dynamic use of the dictionary based upon the
web browser user .. what should I do ?

2 - I got another localization problem with number formatting
I defined  a numberFormatter as following :
		numberFormatter = new NSNumberFormatter();
		numberFormatter.setDefaultLocalizesPattern(true);
and I am using this formatter with my WOTextFields,
but I don't get the $ or euro currency according to the web browser
user.... neither the thousand separator (different in Europe...
swapping US decimal (dot) and thousand (comma) to European decimal
(comma) and thousand (dot) separators...  I should have missed
something somewhere ...... but what ?

thanks for your help
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Localization
      • From: David Griffith <email@hidden>
  • Prev by Date: Re: Best Framework Location
  • Next by Date: Re: Access NSDictionary-Keys in Repetition
  • Previous by thread: ERJavaMail - HTML & Text mails combined
  • Next by thread: Re: Localization
  • Index(es):
    • Date
    • Thread