Re: Localization
Re: Localization
- Subject: Re: Localization
- From: Francesco Romano <email@hidden>
- Date: Fri, 18 Sep 2009 09:10:03 +0200
Ok.. please.. don't beat me....
I've already checked that.... but... it was commented!!
That row and all the localization properties (and.. yesterday I was
wondering why only the english localization worked...)
So... I've only one problem left.. (this is not truly a problem..)
If I set the localization of the numberformatter in the "static" way
(NSNumberFormatter.setDefaultLocalizesPattern(true)) in the
Application constructor, the formatters are not localized.
If I set it using the "instance" way it works..
Why?
Francesco.
On 18/set/2009, at 04.01, Ramsey Lee Gurley wrote:
That works for me. Did you add
# Project Encoding
er.extensions.ERXApplication.DefaultEncoding=UTF-8
to your properties file?
Ramsey
On Sep 17, 2009, at 10:33 AM, Francesco Romano wrote:
I set the currency in the constructor of the component:
numberFormatter = new NSNumberFormatter("$ #,##0.00");
numberFormatter.setLocalizesPattern(true);
numberFormatter.setCurrencySymbol("€");
But this is the rendered html:
? 3.500,00
<image.png>
Francesco
Il giorno 17/set/2009, alle ore 13.49, Ramsey Lee Gurley ha scritto:
Hi Francesco,
Where is the EURO sign failing? Is it stored in the database, the
localized strings file, the component...?
Ramsey
On Sep 17, 2009, at 2:26 AM, Francesco Romano wrote:
Ok.. I'll take a look to ERXLocalizer.
(I thought having different wo component very similar to have
different .nib files..plus using the .string file for
"programmatic" localization).
And.. what about the EURO sign? Why I can't render it??
Il giorno 17/set/2009, alle ore 01.24, Ramsey Lee Gurley ha
scritto:
Hi Francesco,
I'll second what Pascal is saying. Unless you really _need_ a
localized component, stick to localized strings. You'll just
end up making your app *a lot* harder to maintain with lots of
localized WOComponents. It's simple math... two components =
twice the work. :-)
Ramsey
On Sep 16, 2009, at 3:17 PM, Pascal Robert wrote:
Do yourself a favor and use ERXLocalizer. The method of having
one WO component per language is purely trouble.
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 (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-------------------------------------------------------
Pascal Robert
http://www.macti.ca | http://www.linkedin.com/in/macti
Skype | Twitter | AIM/iChat : MacTICanada
_______________________________________________
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
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
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
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