On Thu, May 29, 2014 at 02:16:21PM -0500, Tim Donohue wrote: > Short answer, yes. :) > > Perhaps we should look at what list other open source tools use? Or > perhaps this language list could be auto-populated by a JQuery tool or > something like that (if one exists), rather than being stored in > input-forms.xml
I was thinking about that. If input-forms.xml could have a type
meaning "call this generator for a list" then we could do something
like this:
List<Array<String>> languages = new ArrayList<Array<String>>();
for (String language : Locale.getISOLanguages())
{
languages.add(new String[] {code,
Locale.forLanguageTag(language).getDisplayLanguage()});
}
return languages;
(Java-flavored pseudocode -- I haven't even tried to compile that.)
One nice thing about Java is that its maintainers pay serious
attention to i18n and tend to provide good lists of things like this.
--
Mark H. Wood, Lead System Programmer [email protected]
Machines should not be friendly. Machines should be obedient.
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet
_______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
