Locale

How do you handle getting the Program Files directory (or any directory) if the OS is not in English?

I can use Java and properties files for each Locale, however how does this

effect the directories used in the Program itself?

I have converted the text to support another Locale. This was well

documented, however can someone guide me to what else on the

computer is going to be "out of whack"?

The My Documents folder may not be My Documents now.

[492 byte] By [-Deba] at [2007-11-27 9:26:59]
# 1

> How do you handle getting the Program Files directory

> (or any directory) if the OS is not in English?

If using 1.5, you can query some environment variables :

System.getenv("ProgramFiles");

> The My Documents folder may not be My Documents now.

System.getenv("USERPROFILE");

--

http://www.rgagnon.com/howto.html

RealHowToa at 2007-7-12 22:24:24 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Thanks. I was getting some of those values looking them up in theRegistry...This is so much easier.Will the program files variable always be defined ?
-Deba at 2007-7-12 22:24:24 > top of Java-index,Desktop,Developing for the Desktop...
# 3
> Will the program files variable always be defined ?On recent version of Windows, yes.For a list of what is available see http://en.wikipedia.org/wiki/Environment_variable#Examples_from_Microsoft_WindowsBye.-- htp://www.rgagnon.com/howto.html
RealHowToa at 2007-7-12 22:24:24 > top of Java-index,Desktop,Developing for the Desktop...