Monday, November 08, 2010 at 12:05 AM.

system.verbs.builtins.radio.prefs.special.languagePopup

on languagePopup (prompt, adrlanguage) {
	<<Changes
		<<1/21/02; 6:54:01 PM by DW
			<<Created.
	local (pta = html.getpagetableaddress ());
	if pta^.method == "POST" {
		<<scratchpad.args = pta^.radioresponder.postargs; edit (@scratchpad.args)
		adrlanguage^ = pta^.radioresponder.postargs.language};
	local (languagepopup);
	bundle { //set languagePopup
		local (defaultLanguage = "\"" + adrlanguage^ + "\"");
		languagepopup = string (radio.data.localization.languages.english.strings.editCategory.languages);
		languagepopup = string.replace (languagepopup, defaultLanguage, defaultLanguage + " selected")};
	return ("<tr><td>" + prompt + ":</td><td>" + languagepopup + "</td></tr>")}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.