Symbian
Symbian OS Library

FAQ-0440 getDisplayCountry() and getDisplayLanguage() methods of Locale class don't work

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: java.util
Created: 11/25/99 Modified: 07/03/2001
Number: FAQ-0440
Platform: ER5

Question:
The getDisplayCountry() method of the Locale class doesn't return any useful information and the getDisplayLanguage() methods give unpredictable results.

Answer:
These are known defects of the ER5 Runtime for Java. The getDisplayLanguage() method in particular should return a string describing the language using the language of the default locale, but erroneously uses the language of the locale on which the method was called (e.g. "espagnol" rather than "Spanish"). In the case of locales using French or German, the language is also erroneously reported as being English ("anglais" or "Englisch" respectively). This has been fixed for v6 of the Symbian OS.