You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Felipe Schnack <fe...@ritterdosreis.br> on 2003/02/27 18:05:56 UTC
locale
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.
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Kris Schneider <kr...@dotech.com>.
java -Duser.language=pt -Duser.region=BR
Which is Portuguese/Brazil
java -Duser.language=br -Duser.region=PT
Which is Breton/Portugal
Quoting Felipe Schnack <fe...@ritterdosreis.br>:
> So
> java _Duser.country=pt_BR?
>
> On Thu, 2003-02-27 at 15:23, Kris Schneider wrote:
> > You can try setting the user.language and user.region system properties
> at
> > startup. Where user.region can be country, country_variant, or _variant.
> >
> > Quoting Felipe Schnack <fe...@ritterdosreis.br>:
> >
> > > 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
>
> > > > will be
> > > > Locale.setDefault(new Locale("br", "PT"));
> > > >
> > > > You may also want to set the TimeZone in a similar manner.
> > > >
> > > > Felipe Schnack wrote:
> > > >
> > > > > 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.
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > --
> > >
> > > Felipe Schnack
> > > Analista de Sistemas
> > > felipes@ritterdosreis.br
> > > Cel.: (51)91287530
> > > Linux Counter #281893
> > >
> > > Centro Universitário Ritter dos Reis
> > > http://www.ritterdosreis.br
> > > ritter@ritterdosreis.br
> > > Fone/Fax.: (51)32303341
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > --
> > Kris Schneider <ma...@dotech.com>
> > D.O.Tech <http://www.dotech.com/>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Centro Universitário Ritter dos Reis
> http://www.ritterdosreis.br
> ritter@ritterdosreis.br
> Fone/Fax.: (51)32303341
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Felipe Schnack <fe...@ritterdosreis.br>.
So
java _Duser.country=pt_BR?
On Thu, 2003-02-27 at 15:23, Kris Schneider wrote:
> You can try setting the user.language and user.region system properties at
> startup. Where user.region can be country, country_variant, or _variant.
>
> Quoting Felipe Schnack <fe...@ritterdosreis.br>:
>
> > 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
> > > will be
> > > Locale.setDefault(new Locale("br", "PT"));
> > >
> > > You may also want to set the TimeZone in a similar manner.
> > >
> > > Felipe Schnack wrote:
> > >
> > > > 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.
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > --
> >
> > Felipe Schnack
> > Analista de Sistemas
> > felipes@ritterdosreis.br
> > Cel.: (51)91287530
> > Linux Counter #281893
> >
> > Centro Universitário Ritter dos Reis
> > http://www.ritterdosreis.br
> > ritter@ritterdosreis.br
> > Fone/Fax.: (51)32303341
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Kris Schneider <kr...@dotech.com>.
You can try setting the user.language and user.region system properties at
startup. Where user.region can be country, country_variant, or _variant.
Quoting Felipe Schnack <fe...@ritterdosreis.br>:
> 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
> > will be
> > Locale.setDefault(new Locale("br", "PT"));
> >
> > You may also want to set the TimeZone in a similar manner.
> >
> > Felipe Schnack wrote:
> >
> > > 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.
> > >
> > >
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Centro Universitário Ritter dos Reis
> http://www.ritterdosreis.br
> ritter@ritterdosreis.br
> Fone/Fax.: (51)32303341
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Jon Wingfield <jo...@mkodo.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Drew Sudell <as...@acm.org>.
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Drew Sudell asudell@acm.org http://www.op.net/~asudell
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Felipe Schnack <fe...@ritterdosreis.br>.
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
> will be
> Locale.setDefault(new Locale("br", "PT"));
>
> You may also want to set the TimeZone in a similar manner.
>
> Felipe Schnack wrote:
>
> > 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.
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: locale
Posted by Jon Wingfield <jo...@mkodo.com>.
via a static method on java.util.Locale. In your case the Locale call
will be
Locale.setDefault(new Locale("br", "PT"));
You may also want to set the TimeZone in a similar manner.
Felipe Schnack wrote:
> 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.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org