• 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: Francesco Romano <email@hidden>
  • Date: Wed, 16 Sep 2009 20:59:18 +0200

Hi..
I need to localize a WO app in two languages: italian and english.
So.. I read this page: http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Development-Localization+and+Internationalization
I create two folders in Resources: Italian.lproj and English.lproj.
Than I move every WO file into italian, and then copied all to English.
When I start the app nothing appear and this is the log:


set 16 20:52:42 PNStore[5100] DEBUG NSLog  - Waiting for requests...
set 16 20:52:43 PNStore[5100] DEBUG NSLog  - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "file:/Users/makaveli/Projects/Java/PNStore/build/PNStore.woa/Contents/Resources/Main.wo".

A second thing about localization: localizing a NSNumberFormatter: I want that the currency is Euro, but the formatter is "localized" (so english has a dot as decimal separator and italian has a comma).
For the currency: if I type: numberFormatter.setCurrencySymbol("€"); I see a ? instead of the symbol.
For the localization: if I add this to Application constructor: 
NSNumberFormatter.setDefaultLocalizesPattern(true);
nothing changes, but if I write this for every formatter it works:
numberFormatter = new NSNumberFormatter("$ #,##0.00");
numberFormatter.setLocalizesPattern(true);
numberFormatter.setCurrencySymbol("Euro");

Thanks!!
Francesco
 _______________________________________________
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

  • Follow-Ups:
    • Re: Localization
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Google Data Client Library (gdata) install with WebObjects
  • Next by Date: Re: Google Data Client Library (gdata) install with WebObjects
  • Previous by thread: Re: Google Data Client Library (gdata) install with WebObjects
  • Next by thread: Re: Localization
  • Index(es):
    • Date
    • Thread