I'm running into a kind of problem here.
I'm French and working on an English version of Windows XP. Therefore, I set the regional options to French, but still have an English language UI.
I'm working on a small Java SE application, and decided to internationalize it using resources bundle.
To display the proper language, I create the bundle with this function :
private static ResourceBundle bundle = ResourceBundle
.getBundle("locale.Strings", Locale.getDefault());
But the Locale.getDefault() function returns the regional settings (meaning : French) and not the system UI language. As a result, my UI defaults to French, in an English environment. And well, that's not really what I expected...
Does anyone knows of a platform-independent way to recover the system UI language ? Thanks in advance !
Edit : fixed Local to Locale, thanks.
Locale.getDefault()
and notLocal.getDefault()
? – Sailer