Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

specifying locale at command line

Thread view: 
jvax - 28 Oct 2005 05:42 GMT
Hi,
I forgot how to specify the locale when launching a java swing app from
command line. Can anyone point me to some URL where I can find java command
line options and a list of language and locale identifiers.
Thanks.

-- j
Roedy Green - 28 Oct 2005 07:05 GMT
>I forgot how to specify the locale when launching a java swing app from
>command line. Can anyone point me to some URL where I can find java command
>line options and a list of language and locale identifiers.
>Thanks.

They are controlled by a number of system properties.  See
http://mindprod.com/jgloss/properties.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

jvax - 28 Oct 2005 11:07 GMT
>>I forgot how to specify the locale when launching a java swing app from
>>command line. Can anyone point me to some URL where I can find java
[quoted text clipped - 4 lines]
> They are controlled by a number of system properties.  See
> http://mindprod.com/jgloss/properties.html

Thanks for the link but unfortunately I couldn't find the answer I am
looking so I'll rephrase my question. What is the command line option(s) to
use if I want to start a swing app in another language than the default one?
I roughly remember it was something like --locale=xx_XX --language=XX etc...
Real Gagnon - 28 Oct 2005 12:21 GMT
> option(s) to use if I want to start a swing app in another language
> than the default one? I roughly remember it was something like
> --locale=xx_XX --language=XX etc...

java -Duser.language=en -Duser.region=US MyApplication

Bye.
Signature

Real Gagnon  from  Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to  
* http://www.rgagnon.com/howto.html

jvax - 28 Oct 2005 12:48 GMT
>> option(s) to use if I want to start a swing app in another language
>> than the default one? I roughly remember it was something like
[quoted text clipped - 3 lines]
>
> Bye.

Yesss!! Thank you.

--j
Roedy Green - 31 Oct 2005 10:53 GMT
>Thanks for the link but unfortunately I couldn't find the answer I am
>looking so I'll rephrase my question. What is the command line option(s) to
>use if I want to start a swing app in another language than the default one?
>I roughly remember it was something like --locale=xx_XX --language=XX etc...

All I can do is ask you to follow the links I already gave you.

both the names of the properties, source code to get/set them and
instructions how to put them on the java.exe command line are all
there.

See http://mindprod.com/jgloss/properties.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.