Menu

#10 Different handling of languages

open
nobody
None
5
2007-02-02
2007-02-02
krebu
No

Currently all languages are Strings everywhere.
This should be changed.
Languages are two letter codes according to ISO-639 two-letter language code

Probably a special class to handle this is necessary....
Perhaps the same way as the ch.gnostx.XMLTypes are implemented.

------- Additional Comment #1 From M. Guenter 2005-01-09 17:56 -------

In CardSet:
* primaryLanguage
* backsideLanguage

In UserInformation
* preferredLanguage

Best is to stay with String, but all setters, getters and manipulating methods
test it with Locale

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html

Locale locale=new Locale(str);
return locale.getLanguage();

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.