S. Isaac Dealey wrote: > make it as standardized as possible... Does anybody have a good url to > a page that explains the establishment and general use of the ISO 639 > and ISO 3166 standards and/or lists / databases for general > consumption?
what do you mean by "general consumption"? pretty english names? pretty localized ones? java style? in any case, these are two often quoted resources: http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html btw i wouldn't use the 3 letter codes just yet. you can & probably should use java style locales for this. this snippet will return a list of java style locales available for a server (well available to the JRE in use on that server), note that it skips single languages/variants: <cffunction access="public" name="getLocales" output="No" returntype="string" hint="returns list of locales in this JRE"> <cfscript> var aLocale = createObject("java","java.util.Locale"); var orgLocales = aLocale.getAvailableLocales(); var theseLocales=""; var i=0; for (i=1; i LTE arrayLen(orgLocales); i=i+1) { if (listLen(orgLocales[i],"_") EQ 2) { theseLocales=listAppend(theseLocales,orgLocales[i]); } // if locale more than language and less than variant } //for return theseLocales; </cfscript> </cffunction> but understand that what you get right now in core java pales in comparison to the real world--see http://www.unicode.org/cldr/ for instance. it also has some bad problems w/date/number formats in some locales (mainly arabic, though there are a bunch of nitpicks in other locales). and lacks non-gregorian calendars (though it will playfully format your dates to buddhist calendar ones if you're using th_TH locale). because of this all our i18n stuff is built on top of ibm's icu4j which now (now as in version 3.2 alpha) uses the cldr 1.2 data--that's over 230 locales vs 140 or so for core java. icu4j also offers the world's major calendars (though it still lacks a persian/farsi one). so i tend to "bite my thumb" at core java's i18n support ;-) if you find you can't sleep, you can read more on my blog: http://www.sustainablegis.com/blog/cfg11n/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184941 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

