I am facing some kind of problem.
I am French and working on the English version of Windows XP. Therefore, I installed regional options in French, but still have a user interface in English.
I am working on a small Java SE application and decided to internationalize it with a resource package.
To display the correct language, I create a package using this function:
private static ResourceBundle bundle = ResourceBundle .getBundle("locale.Strings", Locale.getDefault());
But the Locale.getDefault () function returns regional settings (which means: French), and not the system interface language. As a result, my default user interface is in French in an English environment. And well, this is not quite what I expected ...
Does anyone know of a platform-independent way to restore the system user interface language? Thanks in advance!
Edit: Fixed Local to Locale, thanks.
Redwarp
source share