And if, for example, you have a UK-en application hosted in a data centre in Germany...

Drew Sudell wrote:

Yes, but this is an per-instance  attribute, isn't it? How could I
make it be set in all f Tomcat's VMs?
Maybe a java "-D" option?

On Thu, 2003-02-27 at 14:38, Jon Wingfield wrote:


via a static method on java.util.Locale. In your case the Locale call=20
will be
Locale.setDefault(new Locale("br", "PT"));
=20
You may also want to set the TimeZone in a similar manner.
=20
Felipe Schnack wrote:
=20


How can i set the default locale of my application? There is a system
property to do that? I can't find it anywhere, and need to set mine to
pt-BR locale.




Generally the JVM will do "reasonable" things about the locale. I
don't think this is required, per se, but at least for JVMs from Sun
(or ports derived from the Sun code) on Unix platforms, the JVM
startup code tended to derive default locale and file encoding from
the Unix environment (ie the LANG environment variable). I'd expect
other JVMs to act similar. I'd expect JMVs on other platforms to at
in similar but platform dependent ways. For example, I'd expect a JVM on Windows to pick up on the internationalization settings in control
pannel.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to