Open GoogleCodeExporter opened 9 years ago
I think either the data should be parsed from that wikipedia page and be stored
in the database as a table - or - we use the enum. If we have both, the
database and the enum might become out-of-sync.
I'd opt for not having the Language enum anymore. Methods accepting or
returning that enum should accept/return a string instead. Getting a list for
all languages should be possible from the database. Another way to get the a
language string might be through the constants in the Java class Locale.
http://download.oracle.com/javase/6/docs/api/java/util/Locale.html#ENGLISH.
Locale.ENGLISH.getLanguage()
Original comment by richard.eckart
on 14 Sep 2011 at 9:57
Original issue reported on code.google.com by
oliver.ferschke
on 14 Sep 2011 at 9:20