aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes I want JDialog in English Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "I want JDialog in English" Watch "I want JDialog in English" New topic
Author

I want JDialog in English

Ian Wark
Ranch Hand

Joined: Jun 28, 2004
Posts: 37
Hi all.

I realize this is probably pretty low priority for most of you, but this is a simple question. Because my system is a Japanese OS I get all my JDialogs appearing with Japanese messages that is rather irritating. I tried changing the locale for my components and even the default locale, but it doesn't seem to make any difference. Without defining the text myself, is there a simple way for me to get the messages to appear in English (like the rest of my project)?

Thanks in advance.
DANNY JI
Greenhorn

Joined: Jun 08, 2004
Posts: 9
i meet the same problem with it.
and it is answer for SUN.
-------------------------------------------------------------------------
> I found when i using JOptionPane.OK_CANCEL_OPTION ,
>i would get BUTTON OK in english ,
>but cancel in japanese or chinnese with japanese or chinnese OS.
>It seem depend on the OS and Java version.
>May i think the program is running on English System and iqnore it.
Yes, this is ok.
-------------------------------------------------------------------------


SCJP 1.2<br />SCJD
Ian Wark
Ranch Hand

Joined: Jun 28, 2004
Posts: 37
Thanks Danny,

Nice to know someone shares my frustration.

It would be nice, though, to know the rulefor how this gets set.

What are the setLocale methods in many swing components for (like JDialog)? I read that they could be used to set the Locale on an individual component level. Why don't these make a difference?
Kai Witte
Ranch Hand

Joined: Jul 17, 2004
Posts: 354
hello,

I recommend to set user.language manually when starting java if you just want to see how your program looks like with an other locale setting without modifying it. Example:

java -Duser.language=de LocTest

for German. You can also set this programatically when the program is already running, but wether that applies to certain components or not depends on many things then, including implementation details.

Conan


Kai Witte's business website Kai Witte's private homepage Mock exam / preparation kit reviews
Norbert Lebenthal
Ranch Hand

Joined: Sep 23, 2010
Posts: 74
A bit late for sure but it could help someone searching the website.

Hence, to change the default locale: Locale.setDefault(myLocale);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want JDialog in English
 
Similar Threads
Why 'javac -help' displays Chinese help language?
japanese unicode translater
Internationalization question
internationalization help!
how to check locale?