|
|
Classification: |
Java |
Category: |
java.util |
Created: |
12/14/99 |
Modified: |
06/22/2001 |
Number: |
FAQ-0453 |
Platform: |
ER5 |
|
Question: Even on non-English language versions of EPOC, Locale.getDefault().getlanguage() always returns "en". why is this and is there
some work around?
Answer: When the ER5 Runtime for Java is launched, it basically does not pick up any system properties like locale, time zone or language.
Attempts to pick up default values through the appropriate Java methods will mainly return null values: in the case of the
Date() method, GMT will be used; and in the case of getLanguage(), "en" will be returned independently of the system setting.
A JNI work around which gives Java programs running on the ER5 Runtime for Java access to an integer code representing the
system language of the installed o/s is available in the ER5 utility class com.symbian.devnet.util.ELocale, downloadable from
the Symbian Developer Network. This should enable localization strategies to be implemented conditionally.
This problem has been fixed in v6 of the Symbian OS.
|
|
|